<div dir="ltr">Make one pixel have an alpha of 254?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 30, 2022 at 9:01 AM Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Am 29.06.22 um 18:39 schrieb Rob Fearnside:<br>
> I'm using cairo_surface_write_to_png() to generate PNG image sequences from 32-bit source surfaces (ie. CAIRO_FORMAT_ARGB32).  I need the resultant files to all have the same format (32-bit with an alpha channel), but cairo generates 24-bit PNG files for any source images that happen to be entirely opaque (and 32-bit files for those with transparency).<br>
> <br>
> Is there a way of forcibly generating 32-bit PNGs?<br>
<br>
Nope, there isn't.<br>
<br>
Sorry.<br>
<br>
Cheers,<br>
Uli<br>
-- <br>
"Do you know that books smell like nutmeg or some spice from a foreign<br>
land?"<br>
                                              -- Faber in Fahrenheit 451<br>
</blockquote></div>