How can I modify the pixel data of a UIImage on th

2019-08-27 02:47发布

问题:

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?

回答1:

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 :)