Get Alpha Mask Method
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.
Returns a mask that represents the alpha channel of a XAML shape as a CompositionBrush.
public: virtual CompositionBrush ^ GetAlphaMask() = GetAlphaMask;
public CompositionBrush GetAlphaMask();
Public Function GetAlphaMask () As CompositionBrush
A mask that represents the alpha channel of a XAML shape.
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Windows.Foundation.UniversalApiContract (introduced in v3.0)
This method gets an alpha mask from a XAML shape as a CompositionBrush that you can use as an input to composition shadows and effects. The alpha mask CompositionBrush has the same alignment and stretch property values that the source XAML shape applies to its rendered content so that you can use those values to correctly position shadows or effects relative to the XAML element.
Submit and view feedback for