iphoneuiimagergbpixel

Get Pixel color of UIImage


How can I get the RGB value of a particular pixel in a UIImage?


Solution

  • You can't access the raw data directly, but by getting the CGImage of this image you can access it. here is a link to another question that answers your question and others you might have regarding detailed image manipulation : CGImage