Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32.Blend.Modes🞂TCustomGraphics32Blender🞂BlendMethod

TCustomGraphics32Blender.Blend

Blends a foreground color onto a background color.

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.

ParameterTypeDescription
FTColor32Foreground pixel color.
BTColor32Background pixel color.
TypeDescription
TColor32The 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.

ParameterTypeDescription
FTColor32Foreground pixel color.
BTColor32Background pixel color variable updated in-place with the blended result.
MCardinalMaster 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.