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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to