[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TFPPalette - FreePascal Palette definition: base for LCL TPalette etc
Source position: fpimage.pp line 68
type TFPPalette = class |
||
protected |
||
|
FData - local variable to hold data as a Colour Array |
|
FCount: Integer; |
|
FCount - local variable to hold number of colours in array |
FCapacity: Integer; |
|
FCapacity - local variable to hold total capacity of array |
procedure SetCount(); virtual; |
|
SetCount - specify the number of colours in the palette |
function GetCount; |
|
GetCount - returns the number of colours in the palette |
procedure SetColor(); virtual; |
|
SetColor - specifies the value of colour to be associated with the specified index |
function GetColor(); |
|
GetColor - returns the colour value for the specified index |
procedure CheckIndex(); virtual; |
|
CheckIndex - checks validity of supplied index |
procedure EnlargeData; virtual; |
|
EnlargeData - makes room in the array for more data |
public |
||
constructor Create(); |
|
Create - constructor for TFPPalette: calls inherited Create then finds how much memory to allocate for the specified number of colours |
destructor Destroy; override; |
|
Destroy - destructor for TFPPalette: frees memory then calls inherited Destroy |
procedure Build(); virtual; |
|
Build an Image |
procedure Copy(); virtual; |
|
Copy from the source (APalette) to the current Palette |
procedure Merge(); virtual; |
|
Merge the contents of another palette (pal) with the current palette |
function IndexOf(); virtual; |
|
IndexOf - returns the index value for the specified colour |
function Add(); virtual; |
|
Add the specified colour to the palette and return the number of entries |
procedure Clear; virtual; |
|
Clear - empties the palette |
|
The current Color from the palette |
|
property Count: Integer; [rw] |
|
Count - the total number of entries for colours in the palette |
end; |
|
TFPPalette - FreePascal Palette definition: base for LCL TPalette etc |
|
| | ||
TObject |
lazarus-ccr.sourceforge.net |