我有应用程序与标准Inkcanvas。标准应用看起来像 Figure 1.和所有的应用程序代码(XAML)是在这里:wpf inkcanvas刷式
<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>
我想知道如何创建非标准Inkcanvas刷图像像这样(图片面膜?): Figure 2。我想使用Inkcanvas和简单的“背景”图像 (JPG,PNG或其他)。有没有简单的方法来做到这一点?你能举一个例子吗?
在我的应用我要画标准Inkcanvas,之后转换Inkcanvas选择来实现这样的图2(点击按钮后?)