Class TBGRASimpleGradient

Unit

Declaration

type TBGRASimpleGradient = class(TBGRACustomGradient)

Description

Abstract simple RGBA gradient between two colors

Hierarchy

Overview

Fields

Protected ec1: TExpandedPixel;
Protected ec2: TExpandedPixel;
Protected FColor1: TBGRAPixel;
Protected FColor2: TBGRAPixel;
Protected FRepetition: TBGRAGradientRepetition;

Methods

Public constructor Create(AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition); overload;
Public constructor Create(AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition); overload;
Public class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static;
Public class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static;
Public function GetAverageColor: TBGRAPixel; override;
Public function GetAverageExpandedColor: TExpandedPixel; override;
Public function GetColorAt(position: integer): TBGRAPixel; override;
Public function GetColorAtF(position: single): TBGRAPixel; override;
Public function GetExpandedColorAt(position: integer): TExpandedPixel; override;
Public function GetExpandedColorAtF(position: single): TExpandedPixel; override;
Public function GetMonochrome: boolean; override;
Protected function InterpolateToBGRA(position: word): TBGRAPixel; virtual; abstract;
Protected function InterpolateToExpanded(position: word): TExpandedPixel; virtual; abstract;

Properties

Public property Repetition: TBGRAGradientRepetition read FRepetition write FRepetition;

Description

Fields

Protected ec1: TExpandedPixel;

This item has no description.

Protected ec2: TExpandedPixel;

This item has no description.

Protected FColor1: TBGRAPixel;

This item has no description.

Protected FColor2: TBGRAPixel;

This item has no description.

Protected FRepetition: TBGRAGradientRepetition;

This item has no description.

Methods

Public constructor Create(AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition); overload;

This item has no description.

Public constructor Create(AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition); overload;

do not call directly

Public class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static;

This item has no description.

Public class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static;

This item has no description.

Public function GetAverageColor: TBGRAPixel; override;

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

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;

do not call directly

Public function GetColorAtF(position: single): TBGRAPixel; override;

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

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

Public function GetExpandedColorAt(position: integer): TExpandedPixel; override;

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

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

Public function GetExpandedColorAtF(position: single): TExpandedPixel; override;

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

Returns the expanded color at a given position. The reference range is from 0 to 1, 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

Protected function InterpolateToBGRA(position: word): TBGRAPixel; virtual; abstract;

This item has no description.

Protected function InterpolateToExpanded(position: word): TExpandedPixel; virtual; abstract;

This item has no description.

Properties

Public property Repetition: TBGRAGradientRepetition read FRepetition write FRepetition;

This item has no description.