Vcl.Direct2D.TDirect2DCanvas.FloodFill

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

Description

Fills an area of the canvas using the current brush.

Use FloodFill to fill a possibly non-rectangular region of the image with the value of 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.

Warning: FloodFill raises an exception. TDirect2DCanvas does not support the FloodFill operation.

See Also