OpacityMask
This property only uses whatever the alpha channel value is for the supplied Brush. The other channels of the Brush's rendered content (e.g., Red, Green, or Blue) are ignored.
The most commonly used Brush for this purpose is an
In Extensible Application Markup Language (XAML), this property value can use
an inline syntax that is specific to any given implementation of the
Brush abstract class. This inline syntax will vary between each type of
implementation. See
<!-- With the Opacity Mask-->
<Image
Height="150"
Width="200"
Source="sampleImages/Waterlilies.jpg"
HorizontalAlignment="Left"
Margin="10"
Grid.Column="2" Grid.Row="1">
<Image.OpacityMask>
<ImageBrush ImageSource="sampleImages/tornedges.png"/>
</Image.OpacityMask>
</Image>