Vcl.Imaging.GIFImg.TGrayScaleLookup.Lookup
Delphi
function Lookup(Red, Green, Blue: BYTE; var R, G, B: BYTE): Byte; override;
C++
virtual System::Byte __fastcall Lookup(System::Byte Red, System::Byte Green, System::Byte Blue, System::Byte &R, System::Byte &G, System::Byte &B);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | TGrayScaleLookup |
Description
Converts a color to grayscale.
Call Lookup to convert the mapping of the given color, specified through the Red, Green, and Blue parameters, into grayscale.
The resulting color is specified through the R, G, B arguments.