Class TBGRAColorBox

Unit

Declaration

type TBGRAColorBox = class(TObject)

Description

Box area in the colorspace allowing to split in two different areas

Hierarchy

Overview

Methods

Public constructor Create(ADimensions: TColorDimensions; APalette: TBGRACustomPalette); overload;
Public constructor Create(ADimensions: TColorDimensions; ABitmap: TBGRACustomBitmap; AAlpha: TAlphaChannelPaletteOption); overload;
Public constructor Create(ADimensions: TColorDimensions; AColors: PBGRAPixel; ANbPixels: integer; AAlpha: TAlphaChannelPaletteOption); overload;
Public constructor Create(ADimensions: TColorDimensions; AColors: ArrayOfWeightedColor; AOwner: boolean); overload;
Public constructor Create(ADimensions: TColorDimensions; const AColors: ArrayOfTBGRAPixel; AAlpha: TAlphaChannelPaletteOption = acFullChannelInPalette); overload;
Public constructor Create(ADimensions: TColorDimensions; ABounds: TColorBoxBounds); overload;
Public function BoundsContain(AColor: TBGRAPixel): boolean;
Public function Duplicate: TBGRAColorBox;
Public function GetAsArrayOfColors(AIncludePureTransparent: boolean): ArrayOfTBGRAPixel;
Public function MedianCut(ADimension: TColorDimension; out SuperiorMiddle: UInt32): TBGRAColorBox;

Properties

Public property ApparentInterval[AChannel: TColorDimension]: UInt32 read GetApparentInterval;
Public property AverageColor: TBGRAPixel read GetAverageColor;
Public property AverageColorOrMainColor: TBGRAPixel read GetAverageColorOrMainColor;
Public property Bounds[ADimension: TColorDimension]: TDimensionMinMax read GetBounds;
Public property ColorCount[ACountPureTransparent: boolean]: integer read GetColorCount;
Public property HasPureTransparentColor: boolean read GetHasPureTransparentColor;
Public property InferiorColor: TBGRAPixel read GetInferiorColor;
Public property LargestApparentDimension: TColorDimension read GetLargestApparentDimension;
Public property LargestApparentInterval: UInt32 read GetLargestApparentInterval;
Public property PointLike: boolean read GetPointLike;
Public property PureTransparentColorCount: integer read FPureTransparentColorCount;
Public property SuperiorColor: TBGRAPixel read GetSuperiorColor;
Public property TotalWeight: UInt32 read FTotalWeight;

Description

Methods

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

This item has no description.

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

This item has no description.

Public constructor Create(ADimensions: TColorDimensions; AColors: PBGRAPixel; ANbPixels: integer; AAlpha: TAlphaChannelPaletteOption); overload;

This item has no description.

Public constructor Create(ADimensions: TColorDimensions; AColors: ArrayOfWeightedColor; AOwner: boolean); overload;

This item has no description.

Public constructor Create(ADimensions: TColorDimensions; const AColors: ArrayOfTBGRAPixel; AAlpha: TAlphaChannelPaletteOption = acFullChannelInPalette); overload;

This item has no description.

Public constructor Create(ADimensions: TColorDimensions; ABounds: TColorBoxBounds); overload;

This item has no description.

Public function BoundsContain(AColor: TBGRAPixel): boolean;

This item has no description.

Public function Duplicate: TBGRAColorBox;

This item has no description.

Public function GetAsArrayOfColors(AIncludePureTransparent: boolean): ArrayOfTBGRAPixel;

This item has no description.

Public function MedianCut(ADimension: TColorDimension; out SuperiorMiddle: UInt32): TBGRAColorBox;

This item has no description.

Properties

Public property ApparentInterval[AChannel: TColorDimension]: UInt32 read GetApparentInterval;

This item has no description.

Public property AverageColor: TBGRAPixel read GetAverageColor;

This item has no description.

Public property AverageColorOrMainColor: TBGRAPixel read GetAverageColorOrMainColor;

This item has no description.

Public property Bounds[ADimension: TColorDimension]: TDimensionMinMax read GetBounds;

This item has no description.

Public property ColorCount[ACountPureTransparent: boolean]: integer read GetColorCount;

This item has no description.

Public property HasPureTransparentColor: boolean read GetHasPureTransparentColor;

This item has no description.

Public property InferiorColor: TBGRAPixel read GetInferiorColor;

This item has no description.

Public property LargestApparentDimension: TColorDimension read GetLargestApparentDimension;

This item has no description.

Public property LargestApparentInterval: UInt32 read GetLargestApparentInterval;

This item has no description.

Public property PointLike: boolean read GetPointLike;

This item has no description.

Public property PureTransparentColorCount: integer read FPureTransparentColorCount;

This item has no description.

Public property SuperiorColor: TBGRAPixel read GetSuperiorColor;

This item has no description.

Public property TotalWeight: UInt32 read FTotalWeight;

This item has no description.