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)