Hello,
are there any commonly used formulae for converting : 
16bit RGB565(0.31, 0.63, 0.31) values
AND
24bit RGB(0.255, 0.255, 0.255) values

to their hexadecimal triplet equivalents that are used in the 8bit indexed 
mode, (also commonly used for the HTML web pallet).


For instance; 
the 8bit index colour 89 (palm blue original), when converted to RGB using 
WinGetPixelRGB(), produces a value (0x33, 0x00, 0x99)
(note : all other indexed values are also sets of three twin hexadecimal 
numbers.)
in 16bit mode for the same colour, WinGetPixelRGB(), 
produces a value of (0x36, 0x00, 0x9B) which is probably within the scope of 
the actual RGB565 value, see following note;
(Note: 16bits at 5bits+6bits+5bits = 32*64*32 possible colours,
RGB values are in the ranges 0.255, making a total of 255*255*255 possible set 
of three numbers. 
This means that for each real colour there are around 255 different possible 
RGB values.)


Many thanks all help appreciated
Darren

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to