Re: Direct manipulation and write to PNG

Carlos López González <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAF52pzL0wKmuMgJAOY=udC-=ydBsnXyWThUW28SasaE-oTfYMA@mail.gmail.com>
Ok, thank you very much for the quick and helpful response.
After modify the code for little endian system it works great!
Carlos
> The ARGB32 format docs say:
>
>  * @CAIRO_FORMAT_ARGB32: each pixel is a 32-bit quantity, with
>  *   alpha in the upper 8 bits, then red, then green, then blue.
>  *   The 32-bit quantities are stored native-endian. Pre-multiplied
>  *   alpha is used. (That is, 50% transparent red is 0x80800000,
>  *   not 0x80ff0000.) (Since 1.0)
>
> Which means, on a little-endian system, the in-memory layout is BGRA.  But you
> are assuming that it is ARGB in memory.
>
> behdad



--
Carlos
http://synfig.org
-- 
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.