Class TBGRAAvgLvlPalette
Unit
Declaration
type TBGRAAvgLvlPalette = class(TBGRACustomPalette)
Description
Abstract implementation of a BGRA palette using a binary tree.
It ensures relatively fast and average access time even with many entries.
Hierarchy
- TObject
- TBGRACustomPalette
- TBGRAAvgLvlPalette
Overview
Fields
![]() |
FArray: array of PBGRAPixel; |
![]() |
FLastAddedColorCount: integer; |
![]() |
FLastAddedColors: packed[0..MaxLastAddedColors-1] of PBGRAPixel; |
![]() |
FTree: TAVLTree; |
Methods
![]() |
constructor Create; overload; |
![]() |
destructor Destroy; override; |
![]() |
function ContainsColor(AValue: TBGRAPixel): boolean; override; |
![]() |
function GetAsArrayOfColor: ArrayOfTBGRAPixel; override; |
![]() |
function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override; |
![]() |
function IndexOfColor(AValue: TBGRAPixel): integer; override; |
![]() |
function GetColorByIndex(AIndex: integer): TBGRAPixel; override; |
![]() |
function GetCount: integer; override; |
![]() |
function GetLastColor(AValue: TBGRAPixel): PBGRAPixel; |
![]() |
procedure Clear; virtual; |
![]() |
procedure AddLastColor(AColor: PBGRAPixel); |
![]() |
procedure ClearArray; virtual; |
![]() |
procedure ClearLastColors; |
![]() |
procedure FreeEntry(AEntry: PBGRAPixel); virtual; abstract; |
![]() |
procedure NeedArray; virtual; |
Description
Fields
![]() |
FArray: array of PBGRAPixel; |
This item has no description. |
![]() |
FLastAddedColorCount: integer; |
This item has no description. |
![]() |
FLastAddedColors: packed[0..MaxLastAddedColors-1] of PBGRAPixel; |
This item has no description. |
![]() |
FTree: TAVLTree; |
This item has no description. |
Methods
![]() |
constructor Create; overload; |
This item has no description. |
![]() |
destructor Destroy; override; |
This item has no description. |
![]() |
function ContainsColor(AValue: TBGRAPixel): boolean; override; |
This item has no description. |
![]() |
function GetAsArrayOfColor: ArrayOfTBGRAPixel; override; |
This item has no description. |
![]() |
function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override; |
This item has no description. |
![]() |
function IndexOfColor(AValue: TBGRAPixel): integer; override; |
This item has no description. |
![]() |
function GetColorByIndex(AIndex: integer): TBGRAPixel; override; |
This item has no description. |
![]() |
function GetCount: integer; override; |
This item has no description. |
![]() |
function GetLastColor(AValue: TBGRAPixel): PBGRAPixel; |
This item has no description. |
![]() |
procedure Clear; virtual; |
This item has no description. |
![]() |
procedure AddLastColor(AColor: PBGRAPixel); |
This item has no description. |
![]() |
procedure ClearArray; virtual; |
This item has no description. |
![]() |
procedure ClearLastColors; |
This item has no description. |
![]() |
procedure FreeEntry(AEntry: PBGRAPixel); virtual; abstract; |
This item has no description. |
![]() |
procedure NeedArray; virtual; |
This item has no description. |