Show: Delphi C++
Display Preferences

Vcl.Graphics.ColorToRGB

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ColorToRGB(Color: TColor): Longint;

C++

extern DELPHI_PACKAGE int __fastcall ColorToRGB(System::Uitypes::TColor Color);

Properties

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

Description

Converts a TColor value into an RGB representation of the color.

Call ColorToRGB to obtain an RGB representation of a color for using with Windows API calls. ColorToRGB strips away the information that is stored in the highest order bits about which palette to use for colors that are not always available.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance