Search code examples
iphoneobjective-cflood-fill

Floodfill in objective c


I am trying for a coloring app and to figure out floodfill in objective c anybody did this before..???I am reading all pixel data in a picture and i can change it also..but floodfill can only do what i want exactly.. Sample Image..Here I Can identify the pixels containing black dot also.but I am really confuse how to identify the pixels in a particular white area.Any help is appreciated..


Solution

  • I figured it out myself This link really helped me to identify the black and white dot in particular pixels.flood filling is explained here.