RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Graphics.SystemPalette16 Variable

Contains the 16 VGA system colors.

Pascal
SystemPalette16: HPalette;
C++
HPalette SystemPalette16;

Graphics

SystemPalette16 holds a palette handle that contains the 16 VGA system colors. This palette is built at runtime from the system colors defined by the current video card and driver. The actual color values of the stock VGA palette can vary from one video card vendor to the next. Therefore it is not safe to assume, for example, that clGray will be RGB(128,128,128) on all systems.  

This handle is available as a convenience. This is the palette that VCL forces on all 16 color bitmaps that are loaded from files or resources.

Note: Using custom 16-color palettes does not work on 16-color video systems. It is problematic on many 256 color drivers because the variation in colors interferes with transparency operations.
 

 

TGraphic 

Graphics

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!