[cairo] Generating 32-bit PNG files

Bill Spitzak 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:

> Hi,
>
> 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.
>
> Sorry.
>
> Cheers,
> Uli
> --
> "Do you know that books smell like nutmeg or some spice from a foreign
> land?"
>                                               -- Faber in Fahrenheit 451
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20220630/c427f6af/attachment.htm>


More information about the cairo mailing list