Core Graphics 的图形效果库?

发布于 2024-07-10 20:00:05 字数 1560 浏览 5 评论 0原文

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

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

发布评论

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

评论(2

人心善变 2024-07-17 20:00:05

最简单的方法可能是在绘图/绘画程序中将所有效果渲染为具有透明度的 PNG,然后在 iPhone 本身上对它们进行定位/构建/动画处理。 这适用于发光、粒子和类似效果。

CGImage 是最快的图像数据渲染源,您可以在单个视图中手动对它们进行分层(通过自己定位和绘制),也可以绘制到单独的 UILayers 并使用该图层进行动画处理。

The easiest approach may be to render all your effects as PNGs with transparency in a drawing/painting program and just position/build/animate them on the iPhone itself. This will work for glows, particles and similar effects.

CGImage is the fastest rendering source for image data and you can either layer them manually in a single view (by positioning and drawing yourself) or draw to separate UILayers and use the layer to animate.

一抹淡然 2024-07-17 20:00:05

也许 SDL 可能会有所帮助。

编辑:只是为了激励

Maybe SDL could be helpful.

EDIT: just for motivation

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