[Qt-interest] in fact, QImage::ARGB32 is BGRA32 ?

Samuel Rødal sroedal at trolltech.com
Wed Mar 18 14:52:01 CET 2009


James Yan wrote:
 > OK, I C. :-)
 > but, in fact my buff-modify function is requested to wrote with in ANSI
 > C, so no Qt-way available for such case. :(

As long as you operate on an int at a time instead of a char at a time, 
and use shift operators and bit masks to manipulate the pixel's color 
channels, your code should be endian-independent.

--
Samuel Rødal



More information about the Qt-interest-old mailing list