NetXP 3.0 Reference

ColorUtil.BlendColors Method 

Calculates a new color by blending two colors.

[Visual Basic]
Public Shared Function BlendColors( _
   ByVal front As Color, _
   ByVal back As Color, _
   ByVal alpha As Integer _
) As Color
[C#]
public static Color BlendColors(
   Color front,
   Color back,
   int alpha
);

Parameters

front
The foreground color.
back
The background color.
alpha
The simulated alpha value of the foreground color.

Return Value

A blend between the foreground and background colors.

See Also

ColorUtil Class | NETXP.Library Namespace