[cairo] Direct manipulation and write to PNG

Carlos López González genetita at gmail.com
Mon Jul 9 13:19:04 PDT 2012


Hi!

>
> The issue was simply that you were assuming a different byte order
> than the one used on your machine.
> To avoid having these issues, always access whole pixels.

Can you be a little more explicit there ^^?
I don't imagine other way than access the data directly by pixel channels.

> Some documentation about pixel formats can be found here:
> http://cairographics.org/manual/cairo-Image-Surfaces.html#cairo-format-t
> As you can see, ARGB32 is a 32-bits format stored native-endian.
>
> I hope this helps, but don't hesitate to ask for more clarification if
> it is not sufficient.
>
> Andrea
>

Thanks to you too!

-- 
Carlos
http://synfig.org


More information about the cairo mailing list