Display vector images in iOS (SVG or FXG) [closed]

空扰寡人 提交于 2019-12-10 12:38:57

问题


I would like to display images in Adobe FXG file format (exported from flash) or SVG format in an iOS application. Is there an Objective-C tool or library that can render vector graphics ?

(I don't want to convert my images to bitmap format ! I would like to keep vector format)


回答1:


maybe SVGKit could help:

SVGKit is a cross-platform Cocoa framework for rendering SVG files as Core Animation layers. All shapes are represented by instances of the CAShapeLayer class, and are, by design, animatable. SVGKit is compatible with the latest OS X and iOS SDK's.

Note: Nowadays i would recommend to use PaintCode instead!




回答2:


An old question for sure, but hopefully this new answer may help things out. I've spent the weekend looking for a solution, but I wanted to avoid using parsers. I did find a program called Qwarkee which converts svg code into Quartz2D calls. Unfortunately, it's a paid app. (FYI, I have no relation with the project).

If you are looking to produce your artwork specifically for iOS, there are programs like Opacity and PaintCode that will produce the Quartz as you draw your image.

Hope that helps!



来源:https://stackoverflow.com/questions/10908374/display-vector-images-in-ios-svg-or-fxg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!