Shape.GetAlphaMask Method
Important
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;
CompositionBrush GetAlphaMask();
public CompositionBrush GetAlphaMask();
function getAlphaMask()
Public Function GetAlphaMask () As CompositionBrush
A mask that represents the alpha channel of a XAML shape.
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.
Product | Versions |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |