在 iPhone 应用程序中绘制矢量艺术
我正在开发一款iPhone游戏,我想知道如何绘制矢量艺术,现在我在Illustrator + Photoshop中绘制我的所有艺术作品,看起来不错,但我所做的是将我的矢量艺术保存为png,然后我使用它在我的游戏中。
我想做的是使用我的矢量艺术,我该怎么做?
谢谢。
(我读过我应该使用 Quartz2d 和 Core Animation..但不知道它们是什么或如何使用它们)
Im developing an iPhone game, and I want to know how to draw vector art, right now Im drawing all my art in Illustrator + Photoshop, it looks ok, but what I do is to save my vector art to png and then I use it in my game.
What I want to do, is to use my vector art instead, how can I do this?
Thx.
(I've read that I should use Quartz2d and Core Animation.. but dunno what those are or how to use them tbh)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该首先阅读 Quartz 2D 编程指南。
Quartz 2D 是 iOS 中的底层绘图技术,并且是基于矢量的。
如果您打算使用插画师绘制的艺术作品在 Photoshop 中,您可能需要克服一些困难才能将您的资源变成可以直接绘制的东西。
您可以考虑将资源导出为 pdf 并使用 Quartz 2D 的 pdf 支持来绘制它们。如果它不够快,您也许还可以使用它来将内容缓存到位图上。我自己还没有尝试过,但这肯定是我首先尝试的。
祝你好运!
You should start by reading the Quartz 2D Programming Guide.
Quartz 2D is the underlying drawing technology in iOS, and is vector based.
If you plan to use art drawn from illustrator & photoshop you may have to jump through some hoops to turn your assets into something you can draw directly.
You may consider exporting your assets to pdf and using the Quartz 2D's pdf support to draw them. If it's not quick enough, you may yet be able to use it to cache stuff to bitmaps. I haven't tried this myself, but it's certainly what I'd try first.
Good luck!