C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_floodfill, _floodfill_w
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _floodfill functions fill an area of the display, using the
     current color and fill mask.
 
     The _floodfill function begins filling at the view-coordinate
     point (<x>,<y>).
 
     The _floodfill_w function begins filling at the window-coordinate
     point (<wx>, <wy>).
 
     If this point lies inside the figure, the interior is filled; if
     it lies outside the figure, the background is filled. The point
     must be inside or outside the figure to be filled, not on the
     figure boundary itself. Filling occurs in all directions,
     stopping at the <boundary> color.
 
     The _floodfill_w routine is implemented as a macro.
 
     Return Value
 
     The _floodfill functions return a nonzero value if the fill is
     successful. They return 0 if the fill could not be completed, the
     starting point lies on the <boundary> color, or the start point
     lies outside the clipping region.
                                    -♦-