Table of Contents

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 Color

Added color to blend.

background Color

Base color to blend.

alpha float

Blend rate: 0 to 1 (0 is not blend, 1 is full blend).

Returns

Color

Blended color.

Exceptions

ArgumentException

foreground or background is Color.Default or Color.None