[cairo] Image surface : BGRA or ARGB ?
timothee.lecomte at ens.fr
Wed Mar 22 16:05:15 PST 2006
> On Wed, 22 Mar 2006, [iso-8859-1] Timothée Lecomte wrote:
>> I have noticed a difference between the documentation and the actual
>> behaviour of cairo_image_surface_create_for_data().
>> The buffer is supposed to be in the format ARGB :
>> "CAIRO_FORMAT_ARGB32 each pixel is a 32-bit quantity, with alpha in
>> upper 8 bits, then red, then green, then blue."
> Upper 8 bits maps to the fourth byte in a little-endian machine
> like the intels.
Thank you very much. I am discovering the beauty and the uniformity of the
hardware world ! (And I am amused to see that there was the same
distinction - and confusion - in quantum computation classes...)
More information about the cairo