创建矢量从图像 [英] Create Vector From Image
问题描述
我读过1000的帖子说这是可能的,但对我的生命,我找不到如何从PNG创建XAML的矢量。可能有人请点我解释我怎么能在WPF应用程序?
I've read 1,000 posts saying it's possible, but for the life of me, I can't find how to create a vector in XAML from a PNG. Could somebody please point me to any posts that explain how I can create a vector from a PNG for use in a WPF application?
推荐答案
希望这将有助于
下载并安装 Inkscape中(内部使用 Potrace )。下面是关于这个问题的好文章:结果
<一href=\"http://blog.tiaan.com/link/2009/02/21/vectorize-bitmaps-to-xaml-using-potrace-inkscape\">Vectorize使用位图和Potrace Inkscape中 XAML来。结果
下面是从链接的总结。
Download and install Inkscape (internally using Potrace). Here is a good article on the subject:
Vectorize Bitmaps to XAML using Potrace and Inkscape.
Here is a summary from the link..
- 运行Inkscape中
- 选择文件 - >打开并浏览到您的PNG
- 当你问及的链接或嵌入图像:下,选择嵌入
- 选择使用鼠标 新开张的图像
- 选择路径 - >跟踪位图...
- 选择颜色在多次扫描:创建一组路径分组框
- 选择确定执行跟踪
- 关闭跟踪位图窗口
- 选择删除原始图像。编辑 - >反向选择并preSS删除
- 选择文件 - >另存为...下,选择微软XAML,并保存
- Run Inkscape
- Select "File -> Open" and browser to your PNG
- When you're asked about "Link or embed image:", select "embed"
- Select the newly opened image with the Mouse
- Select "Path -> Trace Bitmap..."
- Select "Colors" in the "Multiple scans: create a group of paths" GroupBox
- Select "OK" to execute the trace
- Close the "Trace Bitmap" Window
- Delete the original image by selecting "Edit -> Invert Selection" and press Delete.
- Choose "File -> Save As...", select "Microsoft XAML" and save
..你应该把你的XAML文件从PNG转换。
..and you should have your XAML file converted from a PNG.
这篇关于创建矢量从图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!