无论如何我可以将inkscape SVG文件导出到iPhone核心图形吗?或者也许是插件/导出工具?
4 回答
虽然我还没有尝试在我自己的项目中使用它,但SVGKit看起来是 SVG 解析器和 Cocoa Core Graphics 绘图库的一个很好的竞争者。
我所知道的唯一可以采用 svg(除其他外)并吐出核心图形源(除其他外)的应用程序是 Mac 上的 Opacity。好消息是它做得很好。坏消息是 a) 它不是 Inkscape,b) 它是商业的,c) 更新停滞不前
有一个完全虚构的演示,该应用程序的价格对于您所获得的而言是合理的。它确实做 Cocoa 或 iOS 代码,以及其他 rasterizatiins 等。
Inkscape 可以将文件编写为 png 等格式,但 png 在 Cocoa 中可以正常工作。
我使用 rsvg-convert 从命令行进行转换(类似 unix,也许是 cygwin,我不知道)。
You can use Adobe Illustrator to import svg and then use ai2canvas http://visitmix.com/labs/ai2canvas/ plugin to export it into canvas. Then its a lot easier to convert it into core graphicas than from svg.