Board index » delphi » 16 Million colour palette in windows.

16 Million colour palette in windows.

I have a DIB palette in standard TLogPalette format with version
set to 3.0 and colour entries set to 256. How do I restructure it
for 16 Million colour mode and 16 colour mode.

Thanks in advance.

 

Re:16 Million colour palette in windows.


Quote
ldeb...@ibm.net wrote:

> I have a DIB palette in standard TLogPalette format with version
> set to 3.0 and colour entries set to 256. How do I restructure it
> for 16 Million colour mode and 16 colour mode.

> Thanks in advance.

The palette is fine, but you will need to restructure the bitmap.
Refer to the TBitmapInfo, TBitmapCoreInfo, and GetDiBits in the Windows
help file for more details. There is also a Ti at our web site:

Ti3155 - A Better Way To Print a Form

that uses these calls.

Joe

--
Joe C. Hecht
Borland Delphi Developer Support Group
Technical Documents and Online Forums are available at
http://www.borland.com

Other Threads