VisualTreeHelper.GetOpacityMask(Visual) VisualTreeHelper.GetOpacityMask(Visual) VisualTreeHelper.GetOpacityMask(Visual) VisualTreeHelper.GetOpacityMask(Visual) Method

Definition

Returns a Brush value that represents the opacity mask of the Visual.

public:
 static System::Windows::Media::Brush ^ GetOpacityMask(System::Windows::Media::Visual ^ reference);
public static System.Windows.Media.Brush GetOpacityMask (System.Windows.Media.Visual reference);
static member GetOpacityMask : System.Windows.Media.Visual -> System.Windows.Media.Brush
Public Shared Function GetOpacityMask (reference As Visual) As Brush

Parameters

reference
Visual Visual Visual Visual

The Visual whose opacity mask value is returned.

Returns

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

Remarks

The opacity mask is a Brush that is applied to any alpha-channel masking for the rendered content of this Visual.

Applies to