开发者

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 r开发者_如何学Ceading all pixel data in a picture and i can change it also..but floodfill can only do what i want exactly..

Floodfill in objective c

..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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜