Class TBGRABufferedGradient

Unit

Declaration

type TBGRABufferedGradient = class(TBGRACustomGradient)

Description

Buffered gradient to accelerate computation of complex gradients

Hierarchy

Overview

Fields

Protected FAverageColorComputed: boolean;
Protected FAverageColorExpanded: TExpandedPixel;
Protected FBufferShift: integer;
Protected FBufferSize: integer;
Protected FColorComputed: bitpacked array[0..65535] of boolean;
Protected FColorTab: array of TBGRAPixel;
Protected FGradient: TBGRACustomGradient;
Protected FGradientOwned: boolean;
Protected FMonochrome: boolean;
Protected FMonochromeComputed: boolean;
Protected FPadded: boolean;
Protected FRepetition: TBGRAGradientRepetition;

Methods

Public constructor Create(AGradient: TBGRACustomGradient; AOwner: boolean; APadded: boolean; ABufferSize: integer);
Public destructor Destroy; override;
Public function GetAverageColor: TBGRAPixel; override;
Public function GetAverageExpandedColor: TExpandedPixel; override;
Public function GetColorAt(position: integer): TBGRAPixel; override;
Public function GetMonochrome: boolean; override;

Description

Fields

Protected FAverageColorComputed: boolean;

This item has no description.

Protected FAverageColorExpanded: TExpandedPixel;

This item has no description.

Protected FBufferShift: integer;

This item has no description.

Protected FBufferSize: integer;

This item has no description.

Protected FColorComputed: bitpacked array[0..65535] of boolean;

This item has no description.

Protected FColorTab: array of TBGRAPixel;

This item has no description.

Protected FGradient: TBGRACustomGradient;

This item has no description.

Protected FGradientOwned: boolean;

This item has no description.

Protected FMonochrome: boolean;

This item has no description.

Protected FMonochromeComputed: boolean;

This item has no description.

Protected FPadded: boolean;

This item has no description.

Protected FRepetition: TBGRAGradientRepetition;

This item has no description.

Methods

Public constructor Create(AGradient: TBGRACustomGradient; AOwner: boolean; APadded: boolean; ABufferSize: integer);

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function GetAverageColor: TBGRAPixel; override;

Returns the average color of the gradient

Public function GetAverageExpandedColor: TExpandedPixel; override;

This item has no description. Showing description inherited from TBGRACustomGradient.GetAverageExpandedColor.

Returns the average expanded color of the gradient

Public function GetColorAt(position: integer): TBGRAPixel; override;

Returns the color at a given ''position''. The reference range is from 0 to 65535, however values beyond are possible as well

Public function GetMonochrome: boolean; override;

This item has no description. Showing description inherited from TBGRACustomGradient.GetMonochrome.

Returns whether the gradient has only one color