Class TBGRAColorList
Unit
BGRABitmapTypes
Declaration
type TBGRAColorList = class(TObject)
Description
Contains a fixed list of colors
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
FFinished: boolean; |
This item has no description. |
|
FNbColors: integer; |
This item has no description. |
Methods
|
constructor Create; |
Creates an empty color list
|
|
function IndexOf(Name: string): integer; |
Returns the index of a color with a given name
|
|
function IndexOfColor(const AColor: TBGRAPixel; AMaxDiff: Word = 0): integer; |
Returns the index of a color. Colors are considered to match if the difference is less than or equal to AMaxDiff
|
|
function GetByIndex(Index: integer): TBGRAPixel; |
This item has no description. |
|
function GetByName(Name: string): TBGRAPixel; |
This item has no description. |
|
function GetName(Index: integer): string; |
This item has no description. |
|
procedure Add(Name: string; const Color: TBGRAPixel); overload; |
Add a color to the list
|
|
procedure Finished; |
Ends the color list and prevents further modifications
|
|
procedure Add(Name: string; out Color: TBGRAPixel; red,green,blue: byte); overload; |
This item has no description. |
Properties
|
property Count: integer read FNbColors; |
Gets the number of colors
|
|
property Name[Index: integer]: string read GetName; |
Gets the name of the color at the specified index
|