Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Fills a closed polygon with the active brush.

#Declaration

Delphi
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