Class TBGRAWeightedPalette

Unit

Declaration

type TBGRAWeightedPalette = class(TBGRAPalette)

Description

Palette of weighted colors.

The weight is similar to a number of occurrences. It can be increased or decreased.

Hierarchy

Overview

Methods

Public constructor Create(AColors: ArrayOfWeightedColor); override;
Public function DecColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean;
Public function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override;
Public function IncColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean;
Protected function CreateEntry(AColor: TBGRAPixel): PBGRAPixel; override;
Protected function GetWeightByIndex(AIndex: Integer): UInt32; virtual;
Public procedure IncColors(ABitmap: TBGRACustomBitmap); overload; virtual;
Protected procedure FreeEntry(AEntry: PBGRAPixel); override;
Protected procedure IncludePixel(PPixel: PBGRAPixel); override;

Properties

Public property Weight[AIndex: Integer]: UInt32 read GetWeightByIndex;

Description

Methods

Public constructor Create(AColors: ArrayOfWeightedColor); override;

This item has no description.

Public function DecColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean;

This item has no description.

Public function GetAsArrayOfWeightedColor: ArrayOfWeightedColor; override;

This item has no description.

Public function IncColor(AValue: TBGRAPixel; out NewWeight: UInt32): boolean;

This item has no description.

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

This item has no description.

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

This item has no description.

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

This item has no description.

Protected procedure FreeEntry(AEntry: PBGRAPixel); override;

This item has no description.

Protected procedure IncludePixel(PPixel: PBGRAPixel); override;

This item has no description.

Properties

Public property Weight[AIndex: Integer]: UInt32 read GetWeightByIndex;

This item has no description.