简体   繁体   中英

How can I modify the pixel data of a UIImage on the iPhone?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM