I have Application with standard Inkcanvas. Standard Application looks like Figure 1. and all application code (XAML) is here:
<Window x:Class="WpfApplication18.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<InkCanvas>
<InkCanvas.DefaultDrawingAttributes>
<DrawingAttributes x:Name="attribute" Width="40" Height="40" Color="BlueViolet" />
</InkCanvas.DefaultDrawingAttributes>
</InkCanvas>
</Grid>
I am wondering how to create non standard Inkcanvas Brush with Image (Image Mask?) like this: Figure 2. I want to Paint with use of Inkcanvas and simple "background" image (jpg, png or whatever). Is there a simple way to make it? Can you give example with a code?
In my application I want to paint on standard Inkcanvas and after that convert Inkcanvas selection to achieve something like this Figure 2. (after clicking on a button?)