Hi All,
Does anyone know of any B4A libraries or code to do a flood fill?
This is where you fill a section of a line drawing (or similar) with a chosen colour. A common thing to do for children's drawing programs, for example.
I searched the B4A forums and found a recursive routine which appears to fail because the Android OS only has a 16K stack. I wrote my own non-recursive routine based on an algorithm that I found online, but it is too slow.
There was one forum reference to someone having an "instant" fill routine, but at the time they didn't want to share it. Perhaps now they do?
Thanks,
PenguinHero.