Method AlphaBlend
- Namespace
- Sccg
- Assembly
- Sccg.dll
AlphaBlend(Color, Color, float)
Blend two colors.
public static Color AlphaBlend(Color foreground, Color background, float alpha)
Parameters
foreground
ColorAdded color to blend.
background
ColorBase color to blend.
alpha
floatBlend rate: 0 to 1 (0 is not blend, 1 is full blend).
Returns
- Color
Blended color.
Exceptions
- ArgumentException
foreground
orbackground
is Color.Default or Color.None