[cairo] Cairo + GdkPixbuf

Krzysztof Kosiński tweenk.pl at gmail.com
Sat Jun 26 06:04:05 PDT 2010

W dniu 26 czerwca 2010 12:22 użytkownik Benjamin Otte <otte at redhat.com> napisał:
> The problem is not so much the code needed but the different
> interpretation of the pixels and how to best support it. Cairo image
> formats are premultiplied, GdkPixbuf is not. So you need to
> multiply/divide RGB pixels by the alpha channel every time you go back
> and forth.

If the amount of code is not a problem, then it would make sense to
support everything: ARGB, ABGR, RGBA, BGRA in both premultiplied and
non-premultiplied variants and packed RGB and BGR; in total, 10

Regards, Krzysztof

More information about the cairo mailing list