Board index » delphi » Keeping 16 bits colors in 256 color mode

Keeping 16 bits colors in 256 color mode

Our application has colored panels (Yuck !, I Know, but its our customers
wish),
but has to run not only on 16 bit and higher colors screens, but also at 256
colors.

How can I display the same color in all color modes ?
(so how can I keep the same color palette for my panels in all color modes)
?

Maybe someone allready has a few lib functions, aye ?

Frank.

 

Re:Keeping 16 bits colors in 256 color mode


Use Bitmaps to store your images,
create the bitmaps at runtime..
then set the PixelFormat := pf16bit.
then load your images into it.
when the images are needed then just Copy them to where ever..
they will also be 16 bit this way.
Quote
Frank wrote:
> Our application has colored panels (Yuck !, I Know, but its our customers
> wish),
> but has to run not only on 16 bit and higher colors screens, but also at 256
> colors.

> How can I display the same color in all color modes ?
> (so how can I keep the same color palette for my panels in all color modes)
> ?

> Maybe someone allready has a few lib functions, aye ?

> Frank.

Other Threads