0

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?

Bill
  • 41,409
  • 24
  • 117
  • 209

1 Answers1

0

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
  • 17,002
  • 12
  • 34
  • 44
  • 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 Jun 22 '09 at 11:35
  • I guess you can make an NSData object out of the pixel array and afterwards using the NSData object for creating the UIImage. – Enyra Jun 22 '09 at 11:58