Calculation or Chart for bitmap Color Value Structure
User Lees, Maureen (Maureen.Lees@Cognos.COM) posted:
Does anyone know one of these 2 things:
1. Where I can get a chart with the pixel color numbers and their
-- or --
2. What the calculation is to determine the color (i.e. I know that
I tried downloading the Win32 API manual -- but it was too large.
Thanks in advance,
Team Leader - Upfront QC Automation,
738-1338 x. 5052
Re: Calculation or Chart for bitmap Color Value Structure
I use get_pixel_color(), and it returns 0 for black and 255 for red.
In general, the formula is;
0x00bbggrr - where bb is the blue intensity value, gg the green value and rr the red value.
so; red is x'000000ff' or 255.
white would be x'00ffffff' or 16,777,215.