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
  • 44,502
  • 24
  • 122
  • 213

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,542
  • 12
  • 35
  • 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