[cairo] format difference in saving and loading png images

Srinivasan Ravi sravi at logitech.com
Wed Dec 14 23:44:58 PST 2011


I am facing a strange problem.

I am saving a surface i created with format 4, i.e. RGB16, (stride=2) to a
file using *cairo_surface_write_to_png()*
later, when i load the same file using *cairo_surface_create_from_png(), *i
get a format of 1, i.e. RGB24 and a stride of 4.

Any ideas why this is happening? Is this expected response?

p.s: sorry for mixed fonts!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20111215/61562294/attachment.htm>

More information about the cairo mailing list