RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TThemeServices.ColorToRGB Method (TColor)

Converts a TColor to its RGB representation.

Pascal
function ColorToRGB(Color: TColor): COLORREF; overload;
function ColorToRGB(Color: TColor; Details: PThemedElementDetails): COLORREF; overload;
C++
__fastcall COLORREF ColorToRGB(TColor Color);
__fastcall COLORREF ColorToRGB(TColor Color, PThemedElementDetails Details);

Call ColorToRGB to convert a TColor to its RGB representation. ColorToRGB is only useful to applications that require the colors of controls when theming is enabled; otherwise applications should use the ColorToRGB routine located in Graphics unit. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!