In This Article

BrushExtensions Class

Provides extension methods for the type Brush.

public static class BrushExtensions
Inheritance:
object object

Methods

Tint(Brush, Color)

Returns a clone of the specified Brush that has been tinted towards the specified Color.

public static Brush Tint(this Brush brush, Color tintColor)
Parameter Type Description
brush Brush

The Brush to clone and tint.

tintColor Color

The tint Color.

Returns

Brush:

A clone of the specified Brush that has been tinted towards the specified Color.

Remarks

The brush returned will be always be frozen. A non-frozen brush can be obtained by calling the Tint(Brush, Color) overload.

Tint(Brush, Color, bool)

Returns a clone of the specified Brush that has been tinted towards the specified Color.

public static Brush Tint(this Brush brush, Color tintColor, bool freeze)
Parameter Type Description
brush Brush

The Brush to clone and tint.

tintColor Color

The tint Color.

freeze bool

if set to true then the Brush will be frozen before it is returned.

Returns

Brush:

A clone of the specified Brush that has been tinted towards the specified Color.

Inherited Members