Board index » delphi » convert 24bit to 16bit color?

convert 24bit to 16bit color?


2008-01-30 08:41:04 AM
delphi234
Im looking for a hopefully simple routing to convert a 24bit color value to
a 16bit color of approximately the same color.
To make a long story short... Im adding functionality to a legacy app and
want the user to select a color... I have 24bit color picker components...
so its easy to get the 24bit value... but unfortunately I only have 16bits
of free space in the legacy file format... and really dont want to play with
changing it. lol.
Anyone?
Thanks,
Alchemist
 
 

Re:convert 24bit to 16bit color?

Hi,
Please take a look at this topic:
www.efg2.com/Lab/ImageProcessing/Scanline.htm
Best regards.
Xiaoguang