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.. ..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..
Asked
Active
Viewed 4,073 times
14

PRADIP KUMAR
- 489
- 1
- 9
- 31

Sat
- 1,616
- 3
- 22
- 40
-
5vote up for framing your question so beautifully. – Gypsa Apr 27 '11 at 09:53
-
have you found anything on this?, i am trying to do something like this... and i haven't any code on this. – Florjon Nov 09 '12 at 08:45
-
http://brandontreb.com/image-manipulation-retrieving-and-updating-pixel-values-for-a-uiimage/ Start with this one . – Sat Nov 14 '12 at 14:26
-
did you figure out this? – Mouhamad Lamaa Feb 20 '13 at 13:40
-
http://www.techques.com/question/1-5931552/Flood-Filling-in-iPad-too-SLOW – iCodes Jun 21 '13 at 15:32
-
https://github.com/Chintan-Dave/UIImageScanlineFloodfill – CRDave Jul 19 '13 at 13:56
-
@ sat have u made this , can u provide help regarding this ASAP? – h.kishan Aug 06 '14 at 09:24
2 Answers
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