[cairo] CAIRO_FORMAT_ARGB32 format [ was: Re: "data" in cairo_image_surface_get_data ()

Baz brian.ewins at gmail.com
Wed Nov 28 03:18:58 PST 2007


On Nov 28, 2007 11:16 AM, Baz <brian.ewins at gmail.com> wrote:
> So, converting between cairo's RGB24 and PIX, pixel by pixel, is just
> (pixel32 >> 8), and from PIX to RGB24 is (pixel32 << 8).

I was bound to make a typo like this... RGB24->PIX is (pixel32 << 8),
PIX->RGB24 is (pixel32 >> 8)


More information about the cairo mailing list