I am trying for a coloring app and to figure out floodfill in objective c anybody did this before..???I am r开发者_如何学Ceading all pixel data in a picture and i can change it also..but floodfill can only do what i want exactly..
..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..Theres lots of source code available for flood fill algos. You can probably find a good one and throw it in a method
http://www.google.co.uk/search?q=c+flood+fill+algorithm
If its been written in C/C++ you can use it in Objective-C
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.
精彩评论