从图像中获取路径几何 [英] Get path geometry from image

查看:35
本文介绍了从图像中获取路径几何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有徽标,可以说是 jpg 甚至是 png.关于如何使用它来定义路径几何形状的任何建议?如果可以为我如何混合使用提供任何建议,那就太好了.谢谢

If i have a logo, let's say done as a jpg or even a png. Any suggestion for how I can use that to define a path geometry? It would be really good if any suggestions could be provided for how i can do it in blend. Thanks

推荐答案

是的 - 我两天前刚刚为一个 LOB 应用程序解决了这个问题.

Yes - I just tackled this problem for an LOB application two days ago.

我无法为 Blend 提供建议(虽然我已经读到它可以在 Expression Designer 中完成).然而,我为此找到的最好的免费工具叫做 InkScape (http://www.inkscape.org).

I can't offer advice for Blend (though I've read that it can be done in Expression Designer). However, the best free tool I've found for this is called InkScape (http://www.inkscape.org).

它是开源的,虽然它主要用于编辑基于 SVG 矢量的图像,但它有两个对我们 WPF 用户有用的关键功能:

It's opensource, and while it's intended primarily for editing SVG vector-based images, it has two key features that are useful to us WPFers:

  1. 它可以矢量化(即跟踪")位图和 jpeg 等光栅图像,尽管不如人们希望的那么好,并且
  2. 它可以将矢量图像导出为 XAML

与尝试转换位图/jpeg 相比,您总是会发现加载矢量格式(如 SVG、EMF、WMF 等)并保存到 XAML 会获得更好的结果……仅仅是因为矢量化光栅图像充其量是容易出错的.因此,如果您想将公司徽标引入 XAML,请尝试获取用于创建徽标的源文件(可能在 Illustrator 中完成?)并将其导入 InkScape.

You'll invariably find that you get better results from loading vector formats (like SVG, EMF, WMF, etc) and saving to XAML, than if you try to convert a bitmap/jpeg... simply because the process of vectorizing a raster image is error prone at best. So if you want to bring a company logo into XAML, try to get hold of the source files used to create the logo (perhaps done in Illustrator?) and import that into InkScape.

如果这篇文章有帮助,请点个赞.

If this post is helpful, please be kind and give it a one-up.

这篇关于从图像中获取路径几何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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