图像到XAML路径转换以编程方式 [英] Image to XAML Path Conversion Programmatically

查看:62
本文介绍了图像到XAML路径转换以编程方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用c#以编程方式将图像转换为XAML路径,但我不知道从哪里开始。有可能这样做吗?我没有在Google上找到太多帮助。任何人都可以向我推荐一些有用的资源吗?

I need to convert image into XAML path programmatically using c# but I don't know where to start. Is it possible to do so? I didn't find much help on Google. Can anyone refer me some sources that would help?

推荐答案

请参阅我对该问题的评论。我不相信你真的需要从图像中提取任何东西并从这些数据中形成XAML路径。以交互方式首先提取这样的矢量信息将更容易,更正确和有效。但如果你仍然认为你需要它,你可以使用例如AForge.NET功能,例如边缘检测: http ://www.aforgenet.com/framework/features/edge_detectors_filters.html [ ^ ]。



AForge.NET是一个着名的开源库,由 Andrew Kirillov ,CodeProject成员。另见:

http://en.wikipedia.org/wiki/AForge.NET [ ^ ],

http://www.aforgenet.com [ ^ ],

http:/ /www.codeproject.com/Articles/Andrew-Kirillov#articles [ ^ ]。



-SA
Please see my comments to the question. I am far from believing that you really need to extract anything from an image and form a XAML Path from this data. It would be much easier, more correct and effective to extract such vector information in first place, interactively. But if you still think you need it, you can use, for example AForge.NET features, such as edge detection: http://www.aforgenet.com/framework/features/edge_detectors_filters.html[^].

AForge.NET is a famous open-source library by Andrew Kirillov, a CodeProject member. See also:
http://en.wikipedia.org/wiki/AForge.NET[^],
http://www.aforgenet.com[^],
http://www.codeproject.com/Articles/Andrew-Kirillov#articles[^].

—SA


这篇关于图像到XAML路径转换以编程方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆