0

I'm developing an image editing application for iphone. I've seen many questions similar to mine, but couldn't find a relevent answer. I have generated the pixel data as,

NSData* pixelData = (NSData*)CGDataProviderCopyData(CGImageGetDataProvider(originalImage.CGImage));

Now, i need to get the component values (alpha,R,G,B) from this. How can i do that? Also i need to modify these components and write it to the image. What is the method to implement that?? pls help...

Nithin
  • 6,435
  • 5
  • 43
  • 56

1 Answers1

2

It looks like this question might have some relevant answers.

Community
  • 1
  • 1
Asher Dunn
  • 2,384
  • 16
  • 12