Vcl.Graphics.SystemPalette16

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

SystemPalette16: HPalette; // 16 color palette that maps to the system palette

C++

extern DELPHI_PACKAGE HPALETTE SystemPalette16;

Properties

Type Visibility Source Unit Parent
variable public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

Description

Contains the 16 VGA system colors.

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.

See Also