format difference in saving and loading png images

Srinivasan Ravi <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAEUV6__SU9VdDFgm=0XDA2wrRG2j_A7xT8+oua36FNifjACxmQ@mail.gmail.com>
Hi

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?

Thanks,
Ravi
p.s: sorry for mixed fonts!

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.