creating Quartz paths on vector app?
I dream of being able to use Illustrator to create my vectorial objects and export them as quartz paths. Is that possible?
It needs to be as Quartz paths because I would like to be able to fill the paths with colors, gradients, etc.
How do I do that? Is there a way to export (?) from illustrator or such apps and import paths on Xcode to use on iPhone/iPad?
Is there any library that can convert them or app for that matter?
thanks in advance
I looked around on google and found this It looks pretty promising and has a section on loading EPS, a format exported from illustrator. Look at chapter 16. If this does not work you can always look at creating your own simple format and editor to do simple paths and things.
I've done a some experimental SVG loading some time ago:
1) parse SVG paths into CGPathRefs: https://github.com/mro/MROGeometry/blob/master/PathParser.h - mostly written in plain C.
The most mature library for this is SVGKit. It loads an SVG file the same way UIKit can load a PNG, and draws it in CAShapeLayers. However it does mean that it parses an XML tree every time you want your image drawn.
链接地址: http://www.djcxy.com/p/2812.html上一篇: WF4 / WCF中的RESTful工作流服务端点
下一篇: 在矢量应用程序上创建Quartz路径?