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).
flood fill for JB
flood fill for JB
- Attachments
-
basicPixelFill08.zip- (3.19 KiB) Downloaded 1028 times