Class TBGRAPalette

Unit

Declaration

type TBGRAPalette = class(TBGRAAvgLvlPalette)

Description

Palette of colors, roughly sorted by luminosity

Hierarchy

Overview

Methods

Public constructor Create(APalette: TBGRACustomPalette); overload; virtual;
Public constructor Create(ABitmap: TBGRACustomBitmap); overload; virtual;
Public constructor Create(AColors: ArrayOfWeightedColor); overload; virtual;
Public constructor Create(AColors: ArrayOfTBGRAPixel); overload; virtual;
Public function AddColor(AValue: TBGRAPixel): boolean; virtual;
Public function DetectPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; overload;
Public function DetectPaletteFormat(AStream: TStream): TBGRAPaletteFormat; overload; virtual;
Public function RemoveColor(AValue: TBGRAPixel): boolean; virtual;
Public function SuggestPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; virtual;
Protected function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; virtual;
Public procedure AddColors(APalette: TBGRACustomPalette); overload; virtual;
Public procedure AddColors(ABitmap: TBGRACustomBitmap); overload; virtual;
Public procedure LoadFromFile(AFilenameUTF8: string); virtual;
Public procedure LoadFromResource(AFilename: string; AFormat: TBGRAPaletteFormat);
Public procedure LoadFromStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual;
Public procedure SaveToFile(AFilenameUTF8: string); virtual;
Public procedure SaveToStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual;
Protected procedure ExceptionInvalidPaletteFormat;
Protected procedure ExceptionUnknownPaletteFormat;
Protected procedure FreeEntry(AEntry: PBGRAPixel); override;
Protected procedure IncludePixel(PPixel: PBGRAPixel); virtual;

Description

Methods

Public constructor Create(APalette: TBGRACustomPalette); overload; virtual;

This item has no description.

Public constructor Create(ABitmap: TBGRACustomBitmap); overload; virtual;

This item has no description.

Public constructor Create(AColors: ArrayOfWeightedColor); overload; virtual;

This item has no description.

Public constructor Create(AColors: ArrayOfTBGRAPixel); overload; virtual;

This item has no description.

Public function AddColor(AValue: TBGRAPixel): boolean; virtual;

This item has no description.

Public function DetectPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; overload;

This item has no description.

Public function DetectPaletteFormat(AStream: TStream): TBGRAPaletteFormat; overload; virtual;

This item has no description.

Public function RemoveColor(AValue: TBGRAPixel): boolean; virtual;

This item has no description.

Public function SuggestPaletteFormat(AFilenameUTF8: string): TBGRAPaletteFormat; virtual;

This item has no description.

Protected function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; virtual;

This item has no description.

Public procedure AddColors(APalette: TBGRACustomPalette); overload; virtual;

This item has no description.

Public procedure AddColors(ABitmap: TBGRACustomBitmap); overload; virtual;

This item has no description.

Public procedure LoadFromFile(AFilenameUTF8: string); virtual;

This item has no description.

Public procedure LoadFromResource(AFilename: string; AFormat: TBGRAPaletteFormat);

This item has no description.

Public procedure LoadFromStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual;

This item has no description.

Public procedure SaveToFile(AFilenameUTF8: string); virtual;

This item has no description.

Public procedure SaveToStream(AStream: TStream; AFormat: TBGRAPaletteFormat); virtual;

This item has no description.

Protected procedure ExceptionInvalidPaletteFormat;

This item has no description.

Protected procedure ExceptionUnknownPaletteFormat;

This item has no description.

Protected procedure FreeEntry(AEntry: PBGRAPixel); override;

This item has no description.

Protected procedure IncludePixel(PPixel: PBGRAPixel); virtual;

This item has no description.