Vcl.Imaging.GIFImg.TGIFColorMap.BuildHistogram
Delphi
procedure BuildHistogram(var Histogram: TColormapHistogram); virtual; abstract;
C++
virtual void __fastcall BuildHistogram(TColormapHistogram &Histogram) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
class protected | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | TGIFColorMap |
Description
Creates a histogram of the colors in the color map.
Call BuildHistogram to create a histogram of the colors in the color map. The result is stored in the given Histogram argument.
The resulting array stored by the Histogram argument contains elements of type TUsageCount. Each element contains information about the number Count of usages of a certain color in the GIF image. The index of the color is given by the Index field of the TUsageCount record.