Language:
Русский
English
FloodFill (procedure) (Graph unit)
Fills a bounded region with the current fill pattern and color.
Declaration
procedure FloodFill(X, Y: Integer; Border: Word);
Target
Real, Protected
Remarks
Fills an enclosed area on bitmap devices. (X, Y) is a seed within the enclosed area to be filled. The current fill pattern, as set by SetFillStyle or SetFillPattern, is used to flood the area bounded by Border color. If the seed point is within an enclosed area, then the inside will be filled. If the seed is outside the enclosed area, then the exterior will be filled.
If an error occurs while flooding a region, GraphResult returns a value of grNoFloodMem