System.UITypes.TColorRec.ColorToRGB

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class var ColorToRGB: function (Color: TColor): Longint;

C++

static int __fastcall (*ColorToRGB)(TColor Color);

Properties

Type Visibility Source Unit Parent
field public
System.UITypes.pas
System.UITypes.hpp
System.UITypes TColorRec

Description

ColorToRGB defines a pointer to a function retrieving RGB colors corresponding to constants in TColorRec.

TColorRec defines two groups of constants to obtain access to the color channels record for the TColor type. The first group of constants defines the actual colors. These constants map directly to the closest matching color in the system palette (for example, Blue maps to blue). The Colors table lists these constants. The second group defines constants for the system colors. The System Colors table lists these constants. Now these constants are supported only under the VCL framework. To obtain RGB colors for these constants, use the ColorToRGB field of the TColorRec record. Now we provide the Vcl.Graphics.ColorToRGB function -- under the VCL framework -- which provides conversion of a TColor value into a RGB representation of the color. Under the FireMonkey framework you can provide such function yourself.

See Also