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
Convert an image to XAML?
提问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
更便宜的选择可能是
it will export a svg that you should be able to convert to xaml
它将导出您应该能够转换为 xaml 的 svg
回答by Jon Galloway
回答by Thomas Bratt
A combination of Vector Magicfollowed by ViewerSVGproduces the best quality results for me.
Vector Magic和ViewerSVG 的组合为我产生了最佳质量的结果。
回答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 格式。然后下载转换后的文件并在文本文件编辑器中打开它,然后您可以轻松复制路径数据