TPostScriptPrinterCanvas.FloodFill procedure
Declaration
procedure FloodFill(X: Integer; Y: Integer; FillColor: TColor;
FillStyle: TFillStyle); overrideDescription
Not described here; this is what TCanvas.FloodFill says of it:
Fills the area containing the specified point with the current Brush of the canvas. The area can have an arbitrary shape.
FloodFill is a method used to fill the area at the point specified in X, Y with the style, color, or bitmap defined in Brush.
FillColor contains the color value for the boundary of the fill, or the area to be filled, depending on the value in FillStyle.
FillStyle determines the type of fill operation performed in the method:
- fsBorder
- The fill area is bounded by pixels with the color specified in FillColor. Pixels are filled in all directions with the Brush until the a pixel with the specified FillColor is found.
- fsSurface
- The fill area is defined by all pixels having the color specified in FillColor. Pixels with this color are filled in all directions with the Brush until no more pixels with this color are found.
FloodFill calls the routine in the LCL interface used to implement the method for the widgetset. The return value from the LCL interface is ignored.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
