Class TBGRAPalette
Unit
Declaration
type TBGRAPalette = class(TBGRAAvgLvlPalette)
Description
Palette of colors, roughly sorted by luminosity
Hierarchy
- TObject
- TBGRACustomPalette
- TBGRAAvgLvlPalette
- TBGRAPalette
Overview
Methods
constructor Create(APalette: TBGRACustomPalette); overload; virtual; |
|
constructor Create(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
constructor Create(AColors: ArrayOfWeightedColor); overload; virtual; |
|
constructor Create(AColors: ArrayOfTBGRAPixel); overload; virtual; |
|
function AddColor(AValue: TBGRAPixel): boolean; virtual; |
|
function DetectPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; overload; |
|
function DetectPaletteFormat(AStream: TStream): TBGRAPaletteFormat; overload; virtual; |
|
function RemoveColor(AValue: TBGRAPixel): boolean; virtual; |
|
function SuggestPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; virtual; |
|
function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; virtual; |
|
procedure AddColors(APalette: TBGRACustomPalette); overload; virtual; |
|
procedure AddColors(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
procedure LoadFromFile(AFilenameUTF8: string); virtual; |
|
procedure LoadFromResource(AFilename: string; AFormat: TBGRAPaletteFormat); |
|
procedure LoadFromStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual; |
|
procedure SaveToFile(AFilenameUTF8: string); virtual; |
|
procedure SaveToStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual; |
|
procedure ExceptionInvalidPaletteFormat; |
|
procedure ExceptionUnknownPaletteFormat; |
|
procedure FreeEntry(AEntry: PBGRAPixel); override; |
|
procedure IncludePixel(PPixel: PBGRAPixel); virtual; |
Description
Methods
constructor Create(APalette: TBGRACustomPalette); overload; virtual; |
|
This item has no description. |
constructor Create(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
This item has no description. |
constructor Create(AColors: ArrayOfWeightedColor); overload; virtual; |
|
This item has no description. |
constructor Create(AColors: ArrayOfTBGRAPixel); overload; virtual; |
|
This item has no description. |
function AddColor(AValue: TBGRAPixel): boolean; virtual; |
|
This item has no description. |
function DetectPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; overload; |
|
This item has no description. |
function DetectPaletteFormat(AStream: TStream): TBGRAPaletteFormat; overload; virtual; |
|
This item has no description. |
function RemoveColor(AValue: TBGRAPixel): boolean; virtual; |
|
This item has no description. |
function SuggestPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; virtual; |
|
This item has no description. |
function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; virtual; |
|
This item has no description. |
procedure AddColors(APalette: TBGRACustomPalette); overload; virtual; |
|
This item has no description. |
procedure AddColors(ABitmap: TBGRACustomBitmap); overload; virtual; |
|
This item has no description. |
procedure LoadFromFile(AFilenameUTF8: string); virtual; |
|
This item has no description. |
procedure LoadFromResource(AFilename: string; AFormat: TBGRAPaletteFormat); |
|
This item has no description. |
procedure LoadFromStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual; |
|
This item has no description. |
procedure SaveToFile(AFilenameUTF8: string); virtual; |
|
This item has no description. |
procedure SaveToStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual; |
|
This item has no description. |
procedure ExceptionInvalidPaletteFormat; |
|
This item has no description. |
procedure ExceptionUnknownPaletteFormat; |
|
This item has no description. |
procedure FreeEntry(AEntry: PBGRAPixel); override; |
|
This item has no description. |
procedure IncludePixel(PPixel: PBGRAPixel); virtual; |
|
This item has no description. |