small medium large xlarge

15 May 2009, 11:34
Douglass Turner (10 posts)


One of the core functions of the iPhone app I’m building is rapidly accessing color information at specific pixel locations at interactive speeds. How do I message UIImage for the color at a given pixel(x, y)?

Cheers, Doug

15 May 2009, 13:25
Bill Dudney (916 posts)

You won’t find a method like that on UIImage. You will have to move down to the Quartz level.

Basically you have to get the underlying pixel data then get the color info from there.

Good luck!

You must be logged in to comment