Class TBGRAApproxPalette

Unit

Declaration

type TBGRAApproxPalette = class(TBGRACustomApproxPalette)

Description

Palette approximating color base on a color tree

Hierarchy

Overview

Methods

Public constructor Create(const AColors: ArrayOfTBGRAPixel); overload;
Public constructor Create(const AColors: ArrayOfWeightedColor); overload;
Public constructor Create(AOwnedSplitTree: TBGRAColorTree); overload;
Public destructor Destroy; override;
Public function ContainsColor(AValue: TBGRAPixel): boolean; override;
Public function FindNearestColor(AValue: TBGRAPixel): TBGRAPixel; override;
Public function FindNearestColorIndex(AValue: TBGRAPixel): integer; override;
Public function GetAsArrayOfColor: ArrayOfTBGRAPixel; override;
Public function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override;
Public function IndexOfColor(AValue: TBGRAPixel): integer; override;
Protected function GetColorByIndex(AIndex: integer): TBGRAPixel; override;
Protected function GetCount: integer; override;
Protected function GetWeightByIndex(AIndex: Integer): UInt32; override;
Protected procedure Init(const AColors: ArrayOfTBGRAPixel);

Description

Methods

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

This item has no description.

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

This item has no description.

Public constructor Create(AOwnedSplitTree: TBGRAColorTree); overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function ContainsColor(AValue: TBGRAPixel): boolean; override;

This item has no description.

Public function FindNearestColor(AValue: TBGRAPixel): TBGRAPixel; override;

This item has no description.

Public function FindNearestColorIndex(AValue: TBGRAPixel): integer; override;

This item has no description.

Public function GetAsArrayOfColor: ArrayOfTBGRAPixel; override;

This item has no description.

Public function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override;

This item has no description.

Public function IndexOfColor(AValue: TBGRAPixel): integer; override;

This item has no description.

Protected function GetColorByIndex(AIndex: integer): TBGRAPixel; override;

This item has no description.

Protected function GetCount: integer; override;

This item has no description.

Protected function GetWeightByIndex(AIndex: Integer): UInt32; override;

This item has no description.

Protected procedure Init(const AColors: ArrayOfTBGRAPixel);

This item has no description.