[cairo] ARGB, BGRA, RGBA mess

Bill Spitzak spitzak at d2.com
Thu Jan 13 13:24:55 PST 2005

Carl Worth wrote:

> The one thing I would like to know is if there's a more "standard" way
> to name the formats. It would be helpful if it were more obvious when
> we are talking about ARGB as the order of significant bytes within a
> word, vs. ARGB as the order of addressable bytes. I'm open to good
> suggestions here.

I think what several people here have been saying, me included, is that 
the "standard" is that "RGBA" means R is in the byte with the lowest 

I just checked sevearal interfaces to file reading/writing code 
(libjpeg, libpng, and libtiff, imagemagic, etc) and every single one of 
them uses RGBA. I do not see ARGB or BGRA anywhere! I also thing ABGR is 
rarely used, except to handle endian issues.

More information about the cairo mailing list