ColorUtilities.Blend(Color, Color) Method

Definition

Computes the result of alpha-blending this color over the background using the algorithm described at https://en.wikipedia.org/wiki/Alpha_compositing.

public static System.Windows.Media.Color Blend (System.Windows.Media.Color foreground, System.Windows.Media.Color background);
static member Blend : System.Windows.Media.Color * System.Windows.Media.Color -> System.Windows.Media.Color
Public Function Blend (foreground As Color, background As Color) As Color

Parameters

foreground
Color

A foreground color which may be partially transparent

background
Color

A background color which is assumed to be opaque

Returns

Applies to