- ps打开.png图,载入选区
2. 点击路径-》从选区生成工作路径
3. 切换到图层-》添加图层蒙版
4. 属性栏-》添加矢量蒙版
5. 文件-》存储为 psd格式
6. 下载安装Expression Design 4
7. 文件-》新建
8. 文件-》导入Adobe photoshop文件 刚保存的psd文件导入
9. 点编辑-》复制XAML(x)-》粘贴
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="皇冠" Width="649" Height="288" Canvas.Left="0" Canvas.Top="0">
<Viewbox x:Name="图层_1" Width="219.275" Height="170.302" Canvas.Left="208.995" Canvas.Top="48">
<Canvas Width="219.275" Height="170.302">
<Canvas Width="649" Height="288" x:Name="图层_1_0" Clip="M 105.005,1C 126.313,0.99382 147.539,17.8748 133.005,40C 129.339,42.6664 125.671,45.3336 122.005,48C 111.785,61.4746 128.535,89.7571 135.005,95C 164.667,119.037 194.131,74.8288 187.005,69C 166.001,47.6723 184.341,16.8376 212.005,35C 214.273,39.9478 219.275,43.8992 218.005,52C 216.422,62.1006 209.93,62.78 206.005,69C 205.339,74.9994 204.672,81.0006 204.005,87C 200.007,105.247 194.289,138.43 181.005,148C 143.903,170.302 78.0223,158.394 40.0052,148C 31.515,131.108 23.922,111.564 19.0051,91C 18.3385,83.6674 17.6717,76.3326 17.0052,69C 13.6493,63.324 6.84442,63.0907 5.00516,54C 0,29.2619 26.531,26.6646 40.0052,35C 45.899,47.0572 49.0224,63.5309 33.0052,69C 45.7179,102.932 84.6475,119.587 100.005,77C 113.593,39.3216 60.5798,31.2888 105.005,1 Z ">
<Image x:Name="图层_1_1" Source="SKXaml2_files/image0.png" Width="213" Height="161" Canvas.Left="0" Canvas.Top="0">
<Image.RenderTransform>
<TransformGroup>
<MatrixTransform Matrix="1,0,0,1,5.00517,0"/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Canvas>
</Canvas>
</Viewbox>
</Canvas>