TBLRgba32
32-bit RGBA color (8-bit per component) stored as $AARRGGBB
. This record is compatible with Delphi's TAlphaColor
and TAlphaColorRec
and can be typecast to and from these.
Definition
Unit: Blend2D
Fields
Name | Description |
---|---|
Value | Packed 32-bit RGBA value. |
Properties
Name | Description |
---|---|
A | |
B | |
G | |
IsOpaque | Whether the color is fully opaque (alpha equals $FF). |
IsTransparent | Whether the color is fully transparent (alpha equals $00). |
R |
Constructors
Name | Description |
---|---|
Create(TBLRgba64) | |
Create(TAlphaColorRec) | |
Create(Byte, Byte, Byte, Byte) | |
Create(UInt32) |
Operators
Name | Description |
---|---|
Equal | |
Implicit(TBLRgba32) | Implicitly converts from a TBLRgba32 to a packed 32-bit RGBA value. |
Implicit(TAlphaColorRec) | Implicitly converts from a TAlphaColorRec to a TBLRgba32. |
Implicit(UInt32) | Implicitly converts from a packed 32-bit RGBA value (or TAlphaColor ) to a TBLRgba32. |
NotEqual |
Methods
Name | Description |
---|---|
Create | |
Equals | |
Reset(TBLRgba64) | |
Reset(TAlphaColorRec) | |
Reset(Byte, Byte, Byte, Byte) | |
Reset(UInt32) | |
Reset |
Field Descriptions
Value
Packed 32-bit RGBA value.
var Value: UInt32
Type: UInt32
Property Descriptions
A
property A: Byte read GetA write SetA
Type: Byte
B
property B: Byte read GetB write SetB
Type: Byte
G
property G: Byte read GetG write SetG
Type: Byte
IsOpaque
Whether the color is fully opaque (alpha equals $FF).
property IsOpaque: Boolean read GetIsOpaque
Type: Boolean
IsTransparent
Whether the color is fully transparent (alpha equals $00).
property IsTransparent: Boolean read GetIsTransparent
Type: Boolean
R
property R: Byte read GetR write SetR
Type: Byte
Constructor Descriptions
Create
constructor Create(const ARgba64: TBLRgba64); overload
Parameters
ARgba64
: TBLRgba64
Create
constructor Create(const AColor: TAlphaColorRec); overload
Parameters
AColor
: TAlphaColorRec
Create
constructor Create(const AR, AG, AB: Byte; const AA: Byte = $FF); overload
Parameters
AR
: Byte
AG
: Byte
AB
: Byte
AA
: Byte = $FF
Create
constructor Create(const ARgba32: UInt32); overload
Parameters
ARgba32
: UInt32
Operator Descriptions
Equal(TBLRgba32, TBLRgba32)
class operator Equal(const ALeft, ARight: TBLRgba32): Boolean; inline; static
Parameters
ALeft
: TBLRgba32
ARight
: TBLRgba32
Returns
Boolean
Implicit(TBLRgba32)
Implicitly converts from a TBLRgba32 to a packed 32-bit RGBA value.
class operator Implicit(const AValue: TBLRgba32): UInt32; inline; static
Parameters
AValue
: TBLRgba32
Returns
UInt32
Implicit(TAlphaColorRec)
Implicitly converts from a TAlphaColorRec
to a TBLRgba32.
class operator Implicit(const AValue: TAlphaColorRec): TBLRgba32; inline; static
Parameters
AValue
: TAlphaColorRec
Returns
Implicit(UInt32)
Implicitly converts from a packed 32-bit RGBA value (or TAlphaColor
) to a TBLRgba32.
class operator Implicit(const AValue: UInt32): TBLRgba32; inline; static
Parameters
AValue
: UInt32
Returns
NotEqual(TBLRgba32, TBLRgba32)
class operator NotEqual(const ALeft, ARight: TBLRgba32): Boolean; inline; static
Parameters
ALeft
: TBLRgba32
ARight
: TBLRgba32
Returns
Boolean
Method Descriptions
Create
class function Create: TBLRgba32; overload; inline; static
Returns
Equals(TBLRgba32)
function Equals(const AOther: TBLRgba32): Boolean; inline
Parameters
AOther
: TBLRgba32
Returns
Boolean
Reset(TBLRgba64)
procedure Reset(const ARgba64: TBLRgba64); overload; inline
Parameters
ARgba64
: TBLRgba64
Reset(TAlphaColorRec)
procedure Reset(const AColor: TAlphaColorRec); overload; inline
Parameters
AColor
: TAlphaColorRec
Reset(Byte, Byte, Byte, Byte)
procedure Reset(const AR, AG, AB: Byte; const AA: Byte = $FF); overload; inline
Parameters
AR
: Byte
AG
: Byte
AB
: Byte
AA
: Byte = $FF
Reset(UInt32)
procedure Reset(const ARgba32: UInt32); overload; inline
Parameters
ARgba32
: UInt32
Reset
procedure Reset; overload; inline