[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] Image surface : BGRA or ARGB ?
From:       Timothée_Lecomte <timothee.lecomte () ens ! fr>
Date:       2006-03-23 0:05:15
Message-ID: 39264.128.114.63.224.1143072315.squirrel () www ! mail ! ens ! fr
[Download RAW message or body]

> On Wed, 22 Mar 2006, [iso-8859-1] Timothée Lecomte wrote:
>
>> Hi
>>
>> 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
>> the
>> 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.
>
> behdad

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...)

Best regards,

Timothée Lecomte


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic