Re: Direct manipulation and write to PNG
Carlos López González <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAF52pz+nyex=VFM6k5GU9fDEOw_0t+hJmz1a8kFfPtJW=8zQJQ@mail.gmail.com> |
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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo