Unit BGRAColorQuantization

Description

Color quantization i.e. the reduction to a palette using dithering or not, provided by TBGRAColorQuantizer class.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TBGRAApproxPalette Palette approximating color base on a color tree
Class TBGRAApproxPaletteViaLargerPalette Palette approximating via a large palette
Class TBGRAColorBox Box area in the colorspace allowing to split in two different areas
Class TBGRAColorQuantizer Implementation of color quantization
Class TBGRAColorTree Binary tree of colors for color approximation
Object TDimensionMinMax Range according to one dimension of a color

Functions and Procedures

function BGRAColorCount(ABitmap: TBGRACustomBitmap; AAlpha: TAlphaChannelPaletteOption): integer;
function GetPixelStrictComparer(ADimension: TColorDimension): TIsChannelStrictlyGreaterFunc;
function GetPixelValueComparer(ADimension: TColorDimension): TIsChannelGreaterThanOrEqualToValueFunc;

Types

TBGRALeafColorMode = (...);
TBiggestLeafMethod = (...);
TColorBoxBounds = array[TColorDimension] of TDimensionMinMax;
TColorDimension = (...);
TColorDimensions = set of TColorDimension;
TIsChannelGreaterThanOrEqualToValueFunc = function (p : PBGRAPixel; v: UInt32): boolean;
TIsChannelStrictlyGreaterFunc = TBGRAPixelComparer;

Constants

AllColorDimensions = [cdRed,cdGreen,cdBlue,cdAlpha,cdRGB,cdRG,cdGB,cdRB,cdRInvG,cdGInvB,cdRInvB,cdRInvGB,cdGInvRB,cdBInvRG, cdSaturation];

Description

Functions and Procedures

function BGRAColorCount(ABitmap: TBGRACustomBitmap; AAlpha: TAlphaChannelPaletteOption): integer;

This item has no description.

function GetPixelStrictComparer(ADimension: TColorDimension): TIsChannelStrictlyGreaterFunc;

This item has no description.

function GetPixelValueComparer(ADimension: TColorDimension): TIsChannelGreaterThanOrEqualToValueFunc;

This item has no description.

Types

TBGRALeafColorMode = (...);

This item has no description.

Values
  • lcAverage
  • lcCenter
  • lcExtremum
  • lcMix
TBiggestLeafMethod = (...);

This item has no description.

Values
  • blMix
  • blApparentInterval
  • blWeight
TColorBoxBounds = array[TColorDimension] of TDimensionMinMax;

This item has no description.

TColorDimension = (...);

This item has no description.

Values
  • cdFast
  • cdRed
  • cdGreen
  • cdBlue
  • cdAlpha
  • cdRGB
  • cdRG
  • cdGB
  • cdRB
  • cdRInvG
  • cdGInvB
  • cdRInvB
  • cdRInvGB
  • cdGInvRB
  • cdBInvRG
  • cdSaturation
TColorDimensions = set of TColorDimension;

This item has no description.

TIsChannelGreaterThanOrEqualToValueFunc = function (p : PBGRAPixel; v: UInt32): boolean;

This item has no description.

TIsChannelStrictlyGreaterFunc = TBGRAPixelComparer;

This item has no description.

Constants

AllColorDimensions = [cdRed,cdGreen,cdBlue,cdAlpha,cdRGB,cdRG,cdGB,cdRB,cdRInvG,cdGInvB,cdRInvB,cdRInvGB,cdGInvRB,cdBInvRG, cdSaturation];

This item has no description.