Vcl.Imaging.GIFImg.TGIFColorMap.Add
Delphi
function Add(Color: TColor): integer;
C++
int __fastcall Add(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
Adds the given color to the Colors array.
Call Add to add the color specified through Color to the Colors array. Add returns the size of the Colors array, before adding the Color element.
Because Color is of type TColor, the Color2RGB routine is first used to convert Color to the TGIFColor type, which is the type of the elements in the Colors array.