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