Declarations ​
pascal
function Blend(F: TColor32; B: TColor32): TColor32; overload; virtual; abstract;
procedure Blend(F: TColor32; var B: TColor32; M: Cardinal); overload; virtual;Overload Details
Overload 1 ​
pascal
function Blend(F: TColor32; B: TColor32): TColor32; overload; virtual; abstract;Blends foreground color F onto background color B and returns the resulting 32-bit ARGB color.
| Parameter | Type | Description |
|---|---|---|
F | TColor32 | Foreground pixel color. |
B | TColor32 | Background pixel color. |
| Type | Description |
|---|---|
TColor32 | The resulting blended 32-bit ARGB color. |
Overload 2 ​
pascal
procedure Blend(F: TColor32; var B: TColor32; M: Cardinal); overload; virtual;Blends foreground color F onto background color variable B with master alpha modulation M.
| Parameter | Type | Description |
|---|---|---|
F | TColor32 | Foreground pixel color. |
B | TColor32 | Background pixel color variable updated in-place with the blended result. |
M | Cardinal | Master alpha value (0..255) used to modulate the foreground alpha. |
Description ​
Blend computes the color combination of foreground pixel F and background pixel B. The function overload returns the resulting blended TColor32 value, while the procedure overload applies master alpha modulation M to the foreground pixel's alpha component and updates the background color variable B in-place.