Class TBGRASimpleGradient
Unit
Declaration
type TBGRASimpleGradient = class(TBGRACustomGradient)
Description
Abstract simple RGBA gradient between two colors
Hierarchy
- TObject
- TBGRACustomGradient
- TBGRASimpleGradient
Overview
Fields
![]() |
ec1: TExpandedPixel; |
![]() |
ec2: TExpandedPixel; |
![]() |
FColor1: TBGRAPixel; |
![]() |
FColor2: TBGRAPixel; |
![]() |
FRepetition: TBGRAGradientRepetition; |
Methods
![]() |
constructor Create(AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition); overload; |
![]() |
constructor Create(AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition); overload; |
![]() |
class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static; |
![]() |
class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static; |
![]() |
function GetAverageColor: TBGRAPixel; override; |
![]() |
function GetAverageExpandedColor: TExpandedPixel; override; |
![]() |
function GetColorAt(position: integer): TBGRAPixel; override; |
![]() |
function GetColorAtF(position: single): TBGRAPixel; override; |
![]() |
function GetExpandedColorAt(position: integer): TExpandedPixel; override; |
![]() |
function GetExpandedColorAtF(position: single): TExpandedPixel; override; |
![]() |
function GetMonochrome: boolean; override; |
![]() |
function InterpolateToBGRA(position: word): TBGRAPixel; virtual; abstract; |
![]() |
function InterpolateToExpanded(position: word): TExpandedPixel; virtual; abstract; |
Properties
![]() |
property Repetition: TBGRAGradientRepetition read FRepetition write FRepetition; |
Description
Fields
![]() |
ec1: TExpandedPixel; |
This item has no description. |
![]() |
ec2: TExpandedPixel; |
This item has no description. |
![]() |
FColor1: TBGRAPixel; |
This item has no description. |
![]() |
FColor2: TBGRAPixel; |
This item has no description. |
![]() |
FRepetition: TBGRAGradientRepetition; |
This item has no description. |
Methods
![]() |
constructor Create(AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition); overload; |
This item has no description. |
![]() |
constructor Create(AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition); overload; |
do not call directly |
![]() |
class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TExpandedPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static; |
This item has no description. |
![]() |
class function CreateAny(AInterpolation: TBGRAColorInterpolation; AColor1,AColor2: TBGRAPixel; ARepetition: TBGRAGradientRepetition): TBGRASimpleGradient; overload; static; |
This item has no description. |
![]() |
function GetAverageColor: TBGRAPixel; override; |
This item has no description. Showing description inherited from TBGRACustomGradient.GetAverageColor. Returns the average color of the gradient |
![]() |
function GetAverageExpandedColor: TExpandedPixel; override; |
This item has no description. Showing description inherited from TBGRACustomGradient.GetAverageExpandedColor. Returns the average expanded color of the gradient |
![]() |
function GetColorAt(position: integer): TBGRAPixel; override; |
do not call directly |
![]() |
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 |
![]() |
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 |
![]() |
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 |
![]() |
function GetMonochrome: boolean; override; |
This item has no description. Showing description inherited from TBGRACustomGradient.GetMonochrome. Returns whether the gradient has only one color |
![]() |
function InterpolateToBGRA(position: word): TBGRAPixel; virtual; abstract; |
This item has no description. |
![]() |
function InterpolateToExpanded(position: word): TExpandedPixel; virtual; abstract; |
This item has no description. |
Properties
![]() |
property Repetition: TBGRAGradientRepetition read FRepetition write FRepetition; |
This item has no description. |