Table of Contents

Method GetContrastBrush

Namespace
Alternet.Common.Wpf
Assembly
Alternet.Common.Wpf.v10.dll

GetContrastBrush(Brush, Brush)

Converts the given brush to the contrasting brush for the specified background.

public static Brush GetContrastBrush(Brush color, Brush background)

Parameters

color Brush

Brush to convert.

background Brush

Backgound brush.

Returns

Brush

The contrasting System.Windows.Media.Brush.