ContainerVisual.OpacityMask Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a brush that specifies a possible opacity mask for the ContainerVisual.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public Brush OpacityMask { get; set; }

Property Value

Type: System.Windows.Media.Brush

A value of type Brush that represents the opacity mask value of the ContainerVisual.

Opacity masks can be used to create effects such as vignettes, based on the alpha channel values of the brush.

.NET Framework
Available since 3.0
Return to top
Show: