views:

744

answers:

1

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?

A: 

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

Enyra
Thanks; saw that one already. It explains how to access the pixel data, but not how to create a new image from modified pixel data.
Bill
I guess you can make an NSData object out of the pixel array and afterwards using the NSData object for creating the UIImage.
Enyra