Vcl.Imaging.GIFImg.TGIFColorMap.RGB2Color
Delphi
class function RGB2Color(Color: TGIFColor): TColor;
C++
__classmethod System::Uitypes::TColor __fastcall RGB2Color(TGIFColor Color);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | TGIFColorMap |
Description
Converts a RGB value to a Windows color value.
RGB2Color converts the RGB value of TColor type, specified through the Color argument, to its Windows color value equivalent, and returns the result as a TGIFColor type value.
To convert from a Windows color value to a RGB value, use the Color2RGB method.