Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32.Blend.Modes🞂TCustomGraphics32ComponentBlender🞂BlendComponentsMethod

TCustomGraphics32ComponentBlender.BlendComponents

Blends foreground and background color components given separated RGB and alpha values.

Declaration ​

pascal
function BlendComponents(fColor: TColor32; fAlpha: Cardinal; bColor: TColor32; bAlpha: Cardinal): TColor32; virtual; abstract;

Parameters ​

ParameterTypeDescription
fColorTColor32Foreground RGB color (alpha ignored).
fAlphaCardinalForeground alpha value (0..255).
bColorTColor32Background RGB color (alpha ignored).
bAlphaCardinalBackground alpha value (0..255).

Returns ​

TypeDescription
TColor32The resulting blended 32-bit ARGB color.

Description ​

BlendComponents is the abstract worker method overridden by derived component blenders to combine foreground RGB fColor and alpha fAlpha with background RGB bColor and alpha bAlpha.