Chrisir: hello, as you remember, I asked two questions lately: 1- this floodfill one, 2- undo the drawing one.. Finally, I was trying to work on them, and merge both the codes to create something where one can choose an image, then draw anything over it, use backspace to undo (lines, and if possible the colored patch too), and if an enclosed shape is created, then on keypress+click=colors that section. I hope I am able to convey things properly, think of MS paint's related features.
I am attaching my code here:
Basically, currently the code is doing things partially..when there's no image in the background, the color feature works, but the undo does not.. I was trying to play with the Buch2 file's draw() function. When image is added, then the flood feature does not work, etc etc. I guess not much work is needed to get the expected result, but I might be missing something. Can you please help me on that? Thanks so much!!!