flood fill for JB

Programming Tools, Tips, and Tutorials.
tsh73
Posts: 42
Joined: Fri May 04, 2007 12:03 pm

flood fill for JB

Post by tsh73 »

demo program (works, shows how to use)
and set of routines.
First, call InitForGetPixelValueFromMem
to save all window in bitmap and read it in memory.
Next, just call floodFill.

It uses some global vars, and one helper function - GetPixelValueFromMem$.
It returns color in form
chr$(blue)+chr$(green)+chr$(red),
, same format should be used for border color for floodFill.
There is decoding function for it, getReadablePixel$.

Speed on mu 3GGz box is about 4000+ pixels per second. Actually 100x100 box filled in 2 sec.
It looks usable (unless you want to fill entire screen).
You do not have the required permissions to view the files attached to this post.