TImagingCanvas.FloodFill Method
TImagingCanvas Class

Fills area of canvas with current fill color starting at point [X, Y] and coloring its neighbors.

Class
Pascal
public procedure FloodFill(X: Integer; 
                           Y: Integer; 
                           BoundaryFillMode: Boolean = False);
Description

Default flood fill mode changes color of all neighbors with the same color as pixel [X, Y]. With BoundaryFillMode set to True neighbors are recolored regardless of their old color, but area which will be recolored has boundary (specified by current pen color).

Related Information
You are here: Symbol Reference > Classes > TImagingCanvas Class > Methods > FloodFill Method