0

I'm trying to work on raw pixels of an image using swift language in iOS development. My target is to iterate and log pixel values / color space information of image using CGContextDrawImage and CGContextRef methods. Like the output in attached screenshot. Can anyone guide me through this ? I so far haven't come across a solution.

enter image description here

Sami Kuhmonen
  • 30,146
  • 9
  • 61
  • 74
Rajesh Mappu
  • 483
  • 9
  • 23
  • Not a duplicate but the answer lies in that question I believe :http://stackoverflow.com/questions/25587792/apply-visual-effect-to-images-pixel-by-pixel-in-swift – The Tom Feb 19 '16 at 07:17
  • I checked and studied more after that, but we would need CGContextDrawImage for drawing the image into the above graphics context right ? They have used CGDataProviderCreateWithData to read buffer of image. So after using data provider we can iterate the received pixels to print the above image in pixels ? – Rajesh Mappu Feb 20 '16 at 05:24

0 Answers0