Skip to main content
Pie
ra0

TcxCanvas.FloodFill(Integer,Integer,TColor,TFillStyle) Method

Fills a closed polygon with the active brush.

Declaration

procedure FloodFill(X: Integer; Y: Integer; Color: TColor; FillStyle: TFillStyle);

Parameters

Name Type
X Integer
Y Integer
Color TColor
FillStyle TFillStyle

Remarks

Call this procedure to fill a closed polygon starting at the point whose coordinates are passed as the X and Y parameters. The FloodFill procedure uses the Color and FillStyle parameters to identify borders of the fill operation:

FillStyle Value Description
fsSurface The target fill region is a contiguous area that has the color defined by the Color parameter.
fsBorder The target fill region is an area whose pixel colors do not match the specified color. The FloodFill procedure treats the Color parameter value as the target region border.
See Also