mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
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:
@@ -51,7 +51,7 @@ LinearGradientBrush opacity masking example
|
|||||||

|

|
||||||
DrawingBrush opacity masking example
|
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>
|
<a name="creatingopacitymaskswithgradients"></a>
|
||||||
## Using a Gradient as an Opacity Mask
|
## Using a Gradient as an Opacity Mask
|
||||||
|
|||||||
Reference in New Issue
Block a user