TBLRgba
128-bit RGBA color stored as 4 32-bit floating point values in [RGBA] order. This record is compatible with Delphi's TAlphaColorF
and can be typecase to and from it.
Definition
Unit: Blend2D
Fields
Name | Description |
---|---|
A | Alpha component. |
B | Blur component. |
G | Green component. |
R | Red component. |
Properties
Name | Description |
---|---|
IsOpaque | Whether the color is fully opaque (alpha equals 1.0). |
IsTransparent | Whether the color is fully transparent (alpha equals 0.0). |
Constructors
Name | Description |
---|---|
Create(TAlphaColorF) | |
Create(TBLRgba64) | |
Create(TBLRgba32) | |
Create(Single, Single, Single, Single) |
Operators
Name | Description |
---|---|
Equal | |
NotEqual |
Methods
Field Descriptions
A
Alpha component.
var A: Single
Type: Single
B
Blur component.
var B: Single
Type: Single
G
Green component.
var G: Single
Type: Single
R
Red component.
var R: Single
Type: Single
Property Descriptions
IsOpaque
Whether the color is fully opaque (alpha equals 1.0).
property IsOpaque: Boolean read GetIsOpaque
Type: Boolean
IsTransparent
Whether the color is fully transparent (alpha equals 0.0).
property IsTransparent: Boolean read GetIsTransparent
Type: Boolean
Constructor Descriptions
Create
constructor Create(const AColor: TAlphaColorF); overload
Parameters
AColor
: TAlphaColorF
Create
constructor Create(const ARgba64: TBLRgba64); overload
Parameters
ARgba64
: TBLRgba64
Create
constructor Create(const ARgba32: TBLRgba32); overload
Parameters
ARgba32
: TBLRgba32
Create
constructor Create(const AR, AG, AB: Single; const AA: Single = 1); overload
Parameters
AR
: Single
AG
: Single
AB
: Single
AA
: Single = 1
Operator Descriptions
Equal(TBLRgba, TBLRgba)
class operator Equal(const ALeft, ARight: TBLRgba): Boolean; inline; static
Parameters
ALeft
: TBLRgba
ARight
: TBLRgba
Returns
Boolean
NotEqual(TBLRgba, TBLRgba)
class operator NotEqual(const ALeft, ARight: TBLRgba): Boolean; inline; static
Parameters
ALeft
: TBLRgba
ARight
: TBLRgba
Returns
Boolean
Method Descriptions
Create
class function Create: TBLRgba; overload; inline; static
Returns
Equals(Single, Single, Single, Single)
function Equals(const AR, AG, AB: Single; const AA: Single = 1): Boolean; overload; inline
Parameters
AR
: Single
AG
: Single
AB
: Single
AA
: Single = 1
Returns
Boolean
Equals(TBLRgba64)
function Equals(const AOther: TBLRgba64): Boolean; overload; inline
Parameters
AOther
: TBLRgba64
Returns
Boolean
Equals(TBLRgba32)
function Equals(const AOther: TBLRgba32): Boolean; overload; inline
Parameters
AOther
: TBLRgba32
Returns
Boolean
Equals(TBLRgba)
function Equals(const AOther: TBLRgba): Boolean; overload; inline
Parameters
AOther
: TBLRgba
Returns
Boolean
Reset(TAlphaColorF)
procedure Reset(const AColor: TAlphaColorF); overload; inline
Parameters
AColor
: TAlphaColorF
Reset(Single, Single, Single, Single)
procedure Reset(const AR, AG, AB: Single; const AA: Single = 1); overload; inline
Parameters
AR
: Single
AG
: Single
AB
: Single
AA
: Single = 1
Reset(TBLRgba64)
procedure Reset(const ARgba64: TBLRgba64); overload; inline
Parameters
ARgba64
: TBLRgba64
Reset(TBLRgba32)
procedure Reset(const ARgba32: TBLRgba32); overload; inline
Parameters
ARgba32
: TBLRgba32
Reset
procedure Reset; overload; inline
ToRgba32
function ToRgba32: TBLRgba32; inline
Returns
ToRgba64
function ToRgba64: TBLRgba64; inline