Original Post
Hi!
I have an e.g. for fading out in 16 bit color mode. But I am working with 32 bit color. So I was wondering if anyone could explain this for me:
I know that the color is extracted here. But what I don't understand is the (color & 0xF800) part of the code...
I'm not sure... but I would guess that 0xF800 is a memory adress?
How would that look like with 32 bit color?
Thx!
[edited by - FxMazter on December 28, 2002 10:51:38 AM]
[edited by - FxMazter on December 28, 2002 10:52:07 AM]
USHORT r, g , b;
USHORT color;
r = (color & 0xF800) >> 11;
g = (color & 0x0730) >> 5;
b = (color & 0x001F);