[cairo] Generating 32-bit PNG files
spitzak at gmail.com
Thu Jun 30 17:16:18 UTC 2022
Make one pixel have an alpha of 254?
On Thu, Jun 30, 2022 at 9:01 AM Uli Schlachter <psychon at znc.in> wrote:
> Am 29.06.22 um 18:39 schrieb Rob Fearnside:
> > 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).
> > Is there a way of forcibly generating 32-bit PNGs?
> Nope, there isn't.
> "Do you know that books smell like nutmeg or some spice from a foreign
> -- Faber in Fahrenheit 451
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo