Class TBGRACustomGradient
Unit
Declaration
type TBGRACustomGradient = class(TObject)
Description
Defines a gradient of color, not specifying its shape but only the series of colors
Hierarchy
- TObject
- TBGRACustomGradient
Overview
Methods
function GetAverageColor: TBGRAPixel; virtual; abstract; |
|
function GetAverageExpandedColor: TExpandedPixel; virtual; |
|
function GetColorAt(position: integer): TBGRAPixel; virtual; abstract; |
|
function GetColorAtF(position: single): TBGRAPixel; virtual; |
|
function GetExpandedColorAt(position: integer): TExpandedPixel; virtual; |
|
function GetExpandedColorAtF(position: single): TExpandedPixel; virtual; |
|
function GetMonochrome: boolean; virtual; abstract; |
Properties
property Monochrome: boolean read GetMonochrome; |
Description
Methods
function GetAverageColor: TBGRAPixel; virtual; abstract; |
|
Returns the average color of the gradient |
function GetAverageExpandedColor: TExpandedPixel; virtual; |
|
Returns the average expanded color of the gradient |
function GetColorAt(position: integer): TBGRAPixel; virtual; abstract; |
|
Returns the color at a given position. The reference range is from 0 to 65535, however values beyond are possible as well |
function GetColorAtF(position: single): TBGRAPixel; virtual; |
|
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; virtual; |
|
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; virtual; |
|
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; virtual; abstract; |
|
Returns whether the gradient has only one color |
Properties
property Monochrome: boolean read GetMonochrome; |
|
If the gradient contains only one color and thus is not really a gradient |