Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
I want to find the closest black pixel in the surrounding of the touch coordinates(x,y)of an image.

So i can get the bounds of an image.



Any help pls?
 
Push the pixel coordinates surrounding the touch into a list check each one and if it's not black push the pixels that it touches that are outside the checked area onto the back of the list. Keep going until you find a black pixel.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.