14

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

PRADIP KUMAR
  • 489
  • 1
  • 9
  • 31
Sat
  • 1,616
  • 3
  • 22
  • 40

2 Answers2

1

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

Warren Burton
  • 17,451
  • 3
  • 53
  • 73
1

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.

Sat
  • 1,616
  • 3
  • 22
  • 40