如何修改iPhone上UIImage的像素数据?

发布于 2024-07-25 01:58:59 字数 129 浏览 2 评论 0原文

我想逐个像素地修改 UIImage。

我在这里和其他地方找到了一些关于将图像数据作为 char* 指针访问的帖子。 我的想法是我想修改这些数据,然后根据我的像素数据创建一个新的 UIImage。 以前有人这样做过吗?

I want to modify a UIImage on a pixel-by-pixel basis.

I've found a couple of posts here and elsewhere about accessing the image data as a char* pointer. My twist is that I want to modify this data and then create a new UIImage based on my pixel data. Anyone done this before?

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

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

发布评论

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

评论(1

能否归途做我良人 2024-08-01 01:58:59

也许这可以帮助您: http://developer.apple.com/ iphone/library/qa/qa2007/qa1509.html

ps。 如果您想查看该页面,您需要登录 iPhone 开发者页面:)

Perhaps this can help you: http://developer.apple.com/iphone/library/qa/qa2007/qa1509.html

ps. you need tho login to the iphone developer page, if you want to reed the page :)

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