wpf 将图像转换为 XAML?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/129972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:39:17  来源:igfitidea点击:

Convert an image to XAML?

wpfsilverlightxamlexpression-blend

提问by Peter Walke

Does anyone know of any way to convert a simple gif to xaml? E.G. A tool that would look at an image and create elipses, rectangles and paths based upon a gif / jpg / bitmap?

有谁知道将简单的 gif 转换为 xaml 的任何方法?EG 一种可以查看图像并基于 gif / jpg / 位图创建椭圆、矩形和路径的工具?

采纳答案by Mesh

Illustrator has a trace tool which will do this

Illustrator 有一个跟踪工具可以做到这一点

a cheaper option might be

更便宜的选择可能是

http://vectormagic.com

http://vectormagic.com

it will export a svg that you should be able to convert to xaml

它将导出您应该能够转换为 xaml 的 svg

回答by Jon Galloway

Inkscapecan trace bitmaps, and can save directly to XAML. And, it happens to be free. I've used it to trace a lot of bitmaps and it's worked really well for me.

Inkscape可以跟踪位图,并且可以直接保存到 XAML。而且,它恰好是免费的。我已经用它来跟踪很多位图,它对我来说效果很好。

回答by Thomas Bratt

A combination of Vector Magicfollowed by ViewerSVGproduces the best quality results for me.

Vector MagicViewerSVG 的组合为我产生了最佳质量的结果。

回答by Mamad

With this online converter you can convert an image to SVG Format. then download Converted File and open it in a text File Editor then you can easily copy path data

使用此在线转换器,您可以将图像转换为 SVG 格式。然后下载转换后的文件并在文本文件编辑器中打开它,然后您可以轻松复制路径数据

image.online-convert

image.online-convert