[cairo] Direct manipulation and write to PNG
Carlos López González
genetita at gmail.com
Mon Jul 9 13:19:04 PDT 2012
> 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:
> 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.
Thanks to you too!
More information about the cairo