[cairo] Re: pycairo: bug: surface_create_for_pixbuf swaps colors

Steve Chaplin stevech1097 at yahoo.com.au
Wed Aug 10 08:48:15 PDT 2005


On Mon, 2005-08-08 at 20:59 -0700, Bertram Felgenhauer wrote:
>         Hi
>         
>         (this is based on an discussion on IRC)
>         
>         surface_create_for_pixbuf() assumes that gdk's and cairo's
>         memory
>         layout for images are compatible. This is, in fact, not the
>         case.
>         On little endian machines, the red and green will be swapped.
>         On big endian machines, the alpha channels and color
>         components
>         will be mixed up more badly.
>         
>         The function seems pretty useless as is, could it be removed?
>         
>         Bertram
I've just removed it.
Steve

Send instant messages to your online friends http://au.messenger.yahoo.com 



More information about the cairo mailing list