Vcl.Themes.TCustomStyleServices.ColorToRGB

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ColorToRGB(Color: TColor; Details: PThemedElementDetails = nil): TColorRef; overload;
function ColorToRGB(Color: TColor; Details: TThemedElementDetails): TColorRef; overload; inline;

C++

unsigned __fastcall ColorToRGB(System::Uitypes::TColor Color, PThemedElementDetails Details = (PThemedElementDetails)(0x0))/* overload */;
unsigned __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.

See Also