Vcl.Imaging.GIFImg.TUsageCount
Delphi
TUsageCount = record
Count: integer; // # of pixels using color index
Index: integer; // Color index
end;
C++
struct DECLSPEC_DRECORD TUsageCount
{
public:
int Count;
int Index;
};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
record struct |
public | Vcl.Imaging.GIFImg.pas Vcl.Imaging.GIFImg.hpp |
Vcl.Imaging.GIFImg | Vcl.Imaging.GIFImg |
Description
A variable of type TUsageCount contains histogram information about a GIF.
A variable of type TUsageCount contains information about the number of usages of a color in a GIF.
The BuildHistogram method generates the color histogram of a GIF. The histogram is stored as a TColormapHistogram array with elements of type TUsageCount.
The following table lists the fields contained in a variable of type TUsageCount.
| Field | Meaning |
|---|---|
|
Count |
The number of times the color is used in the GIF. |
|
Index |
The index of the color in the color map. |