SVG 解码 - 便携式解决方案

发布于 2024-09-09 18:01:33 字数 365 浏览 2 评论 0原文

我需要功能齐全的矢量格式,我可以在应用程序中将其解码为纯位图数据。它不需要是 SVG,但它似乎是最好的(但欢迎其他建议)。所以,我需要一个库来简单地将 SVG 光栅化为纯像素数据 - 越简单越好。问题是我需要bada OS(这是手机的操作系统),所以我需要直接用bada IDE编译它。我找到了librsvg,但似乎需要linux环境来构建,所以我不能使用它(但我不确定,我对linux不太了解 - 如果有办法正常编译它,告诉我)。我还发现了graphics magick,这将是完美的,但它无法正确解码我需要的SVG文件(SVG支持是部分的)。 Chrome、Firefox 和 Inkscape 可以完美打开这些文件。那么,我可以使用什么库来对 SVG 文件进行简单的光栅化呢?它可以是C或C++,需要完全开源。

I need fully functional vector format, which i can decode to plain bitmap data in my app. It doesn't need to be SVG, but it seemed best (but other suggestions are welcome). So, i need an lib to simply rasterize SVG into plain pixel data - the simplier, the better. The problem is I need it for bada OS (it's OS for mobile phones), so i need to compile it directly with bada IDE. I found librsvg, but it seems it needs linux environment to build, so i can't use it (but i'm not sure, i don't know much about linux - if there is a way to compile it normally, tell me). I also found graphics magick, which would be perfect, but it can't correctly decode the SVG files i need (SVG support is partial). Chrome, Firefox and Inkscape opens those files perfectly. So, what lib can i use for simple rasterization of SVG files? It can be C or C++, needs to be fully open source.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菩提树下叶撕阳。 2024-09-16 18:01:33

使用 Cairo,特别是 C++ 的 cairomm 库。

Use Cairo, specifically the cairomm library for C++.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文