如何在iPhone上修改UIImage的像素数据? [英] How can I modify the pixel data of a UIImage on the iPhone?
本文介绍了如何在iPhone上修改UIImage的像素数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要逐个像素地修改UIImage.
I want to modify a UIImage on a pixel-by-pixel basis.
我在这里和其他地方找到了几篇关于将图像数据作为char *指针访问的文章.我的不足之处是,我想修改此数据,然后根据我的像素数据创建一个新的UIImage.有人做过吗?
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?
推荐答案
也许这可以帮助您: http://developer.apple.com/iphone/library/qa/qa2007/qa1509.html
ps.如果您想浏览该页面,则需要登录到iphone开发人员页面:)
ps. you need tho login to the iphone developer page, if you want to reed the page :)
这篇关于如何在iPhone上修改UIImage的像素数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文