Class TBGRAColorTree

Unit

Declaration

type TBGRAColorTree = class(TObject)

Description

Binary tree of colors for color approximation

Hierarchy

Overview

Methods

Public constructor Create(ADimensions: TColorDimensions; ABitmap: TBGRACustomBitmap; AAlpha: TAlphaChannelPaletteOption); overload;
Public constructor Create(ADimensions: TColorDimensions; APalette: TBGRACustomPalette); overload;
Public constructor Create(ABox: TBGRAColorBox; AOwned: boolean); overload;
Public destructor Destroy; override;
Public function ApproximateColor(AColor: TBGRAPixel): TBGRAPixel;
Public function ApproximateColorIndex(AColor: TBGRAPixel): integer;
Public function FindBiggestLeaf(AMethod: TBiggestLeafMethod): TBGRAColorTree;
Public function GetAsArrayOfApproximatedColors: ArrayOfTBGRAPixel;
Public function GetAsArrayOfWeightedColors: ArrayOfWeightedColor;
Public function SplitIntoPaletteWithSubPalette(ACount: integer; AMethod: TBiggestLeafMethod; ALeafColor: TBGRALeafColorMode; ASubPaletteCount: integer): ArrayOfTBGRAPixel;
Public function TrySplitLeaf: boolean;
Public procedure ComputeLeavesColor(ALeafColor: TBGRALeafColorMode);
Public procedure FreeLeaves;
Public procedure SplitIntoPalette(ACount: integer; AMethod: TBiggestLeafMethod; ALeafColor: TBGRALeafColorMode);

Properties

Public property ApproximatedColorCount: integer read GetApproximatedColorCount;
Public property HasPureTransparentColor: boolean read GetHasPureTransparentColor;
Public property IsLeaf: boolean read FIsLeaf;
Public property LargestApparentInterval: integer read FLargestApparentInterval;
Public property LeafCount: integer read GetLeafCount;
Public property PureTransparentColorCount: integer read FPureTransparentColorCount;
Public property Weight: UInt32 read FWeight;

Description

Methods

Public constructor Create(ADimensions: TColorDimensions; ABitmap: TBGRACustomBitmap; AAlpha: TAlphaChannelPaletteOption); overload;

This item has no description.

Public constructor Create(ADimensions: TColorDimensions; APalette: TBGRACustomPalette); overload;

This item has no description.

Public constructor Create(ABox: TBGRAColorBox; AOwned: boolean); overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function ApproximateColor(AColor: TBGRAPixel): TBGRAPixel;

This item has no description.

Public function ApproximateColorIndex(AColor: TBGRAPixel): integer;

This item has no description.

Public function FindBiggestLeaf(AMethod: TBiggestLeafMethod): TBGRAColorTree;

This item has no description.

Public function GetAsArrayOfApproximatedColors: ArrayOfTBGRAPixel;

This item has no description.

Public function GetAsArrayOfWeightedColors: ArrayOfWeightedColor;

This item has no description.

Public function SplitIntoPaletteWithSubPalette(ACount: integer; AMethod: TBiggestLeafMethod; ALeafColor: TBGRALeafColorMode; ASubPaletteCount: integer): ArrayOfTBGRAPixel;

This item has no description.

Public function TrySplitLeaf: boolean;

This item has no description.

Public procedure ComputeLeavesColor(ALeafColor: TBGRALeafColorMode);

This item has no description.

Public procedure FreeLeaves;

This item has no description.

Public procedure SplitIntoPalette(ACount: integer; AMethod: TBiggestLeafMethod; ALeafColor: TBGRALeafColorMode);

This item has no description.

Properties

Public property ApproximatedColorCount: integer read GetApproximatedColorCount;

This item has no description.

Public property HasPureTransparentColor: boolean read GetHasPureTransparentColor;

This item has no description.

Public property IsLeaf: boolean read FIsLeaf;

This item has no description.

Public property LargestApparentInterval: integer read FLargestApparentInterval;

This item has no description.

Public property LeafCount: integer read GetLeafCount;

This item has no description.

Public property PureTransparentColorCount: integer read FPureTransparentColorCount;

This item has no description.

Public property Weight: UInt32 read FWeight;

This item has no description.