Fix wrong type listed in opacity article (#1138)

* Update opacity-masks-overview.md

* Update dotnet-desktop-guide/framework/wpf/graphics-multimedia/opacity-masks-overview.md
This commit is contained in:
Andy (Steve) De George
2021-08-27 18:51:42 -07:00
committed by GitHub
parent dfd75f6d2c
commit 5b61eedeaf
@@ -51,7 +51,7 @@ LinearGradientBrush opacity masking example
![Object with a DrawingBrush opacity mask](./media/wcpsdk-drawingbrushasopacitymask-single.jpg "wcpsdk_drawingbrushasopacitymask_single")
DrawingBrush opacity masking example
The gradient brushes (<xref:System.Windows.Media.LinearGradientBrush> and <xref:System.Windows.Media.RadialGradientBrush>) are particularly well-suited for use as an opacity mask. Because a <xref:System.Windows.Media.SolidColorBrush> fills an area with a uniform color, they make poor opacity masks; using a <xref:System.Windows.Media.SolidColorBrush> is equivalent to setting the element's or visual's <xref:System.Windows.UIElement.OpacityMask%2A> property.
The gradient brushes (<xref:System.Windows.Media.LinearGradientBrush> and <xref:System.Windows.Media.RadialGradientBrush>) are particularly well-suited for use as an opacity mask. Because a <xref:System.Windows.Media.SolidColorBrush> fills an area with a uniform color, they make poor opacity masks; using a <xref:System.Windows.Media.SolidColorBrush> is equivalent to setting the element's or visual's <xref:System.Windows.UIElement.Opacity%2A> property.
<a name="creatingopacitymaskswithgradients"></a>
## Using a Gradient as an Opacity Mask