Vcl.Graphics.TCustomCanvas.FloodFill

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

virtual void __fastcall FloodFill(int X, int Y, System::Uitypes::TColor Color, TFillStyle FillStyle) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Fills an area of the canvas using the current brush.

Override the FloodFill method to implement filling of a possibly non-rectangular region of the image with the current brush. The boundaries of the region to be filled are determined by moving outward from the point (X,Y) until a color boundary involving the Color parameter is encountered.

X and Y are the coordinates on the canvas where filling starts. Color is the color that defines the boundary of the region to fill. Its interpretation depends on the value of FillStyle. FillStyle specifies whether the region is defined by all pixels with the same value as Color or all points with a different value.

See Also