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►
────────────────────────────────────────────────────────────────────────────
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.
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 starting
point lies outside the clipping region.
-♦-