[cairo] cairo_image_surface_create_from_png always makes ARGB32 images?
Keith Packard
keithp at keithp.com
Fri Dec 28 22:04:00 PST 2007
PNG images have optional alpha components, so it seems like
cairo_image_surface_create_from_png should select RGB24 for these
instead of insisting on always providing ARGB32 images.
One wonders if this wouldn't allow some back-ends to improve performance
of painting PNG images.
This came up while building a test suite for the nickle binding; test
images on disk in png form must be carefully masked as writing an image
and then re-reading it from disk doesn't generate the same pixel values.
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.cairographics.org/archives/cairo/attachments/20071228/d2867f02/attachment.pgp
More information about the cairo
mailing list