Vcl.Themes.TCustomStyleServices.ColorToRGB
Delphi
function ColorToRGB(Color: TColor; Details: PThemedElementDetails = nil): TColorRef; overload;
function ColorToRGB(Color: TColor; Details: TThemedElementDetails): TColorRef; overload; inline;
C++
Winapi::Windows::TColorRef __fastcall ColorToRGB(System::Uitypes::TColor Color, PThemedElementDetails Details = (PThemedElementDetails)(0x0))/* overload */;
Winapi::Windows::TColorRef __fastcall ColorToRGB(System::Uitypes::TColor Color, const TThemedElementDetails &Details)/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TCustomStyleServices |
Description
Gets the color reference for a specified TColor.
Use ColorToRGB to convert the Color parameter to its RGB representation.
If Details is not nil, the function returns the system color that is defined for Color under the current style. For example, if Color is clBtnFace, the function returns the system color defined for the button face in the current style, as a TColorRef value.