ColorUtilities.Blend(Color, Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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