Class TBGRAWeightedPalette
Unit
Declaration
type TBGRAWeightedPalette = class(TBGRAPalette)
Description
Palette of weighted colors.
The weight is similar to a number of occurrences. It can be increased or decreased.
Hierarchy
- TObject
- TBGRACustomPalette
- TBGRAAvgLvlPalette
- TBGRAPalette
- TBGRAWeightedPalette
Overview
Methods
constructor Create(AColors: ArrayOfWeightedColor); override; |
|
function DecColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean; |
|
function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override; |
|
function IncColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean; |
|
function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; override; |
|
function GetWeightByIndex(AIndex: Integer): UInt32; virtual; |
|
procedure IncColors(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
procedure FreeEntry(AEntry: PBGRAPixel); override; |
|
procedure IncludePixel(PPixel: PBGRAPixel); override; |
Properties
property Weight[AIndex: Integer]: UInt32 read GetWeightByIndex; |
Description
Methods
constructor Create(AColors: ArrayOfWeightedColor); override; |
|
This item has no description. |
function DecColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean; |
|
This item has no description. |
function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override; |
|
This item has no description. |
function IncColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean; |
|
This item has no description. |
function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; override; |
|
This item has no description. |
function GetWeightByIndex(AIndex: Integer): UInt32; virtual; |
|
This item has no description. |
procedure IncColors(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
This item has no description. |
procedure FreeEntry(AEntry: PBGRAPixel); override; |
|
This item has no description. |
procedure IncludePixel(PPixel: PBGRAPixel); override; |
|
This item has no description. |
Properties
property Weight[AIndex: Integer]: UInt32 read GetWeightByIndex; |
|
This item has no description. |