ExtFloodFill

The ExtFloodFill function fills an area of the display surface with the current brush.

Declaration

Declare Function ExtFloodFill Lib "gdi32" Alias "ExtFloodFill" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long, ByVal wFillType As Long) As Long

Parameters

hdc
Handle to a device context.

x
Specifies the logical x-coordinate of the point where filling is to begin.

y
Specifies the logical y-coordinate of the point where filling is to begin.

crColor
Specifies the color of the boundary or of the area to be filled. The interpretation of crColor depends on the value of the fuFillType parameter.

wFillType
Specifies the type of fill operation to be performed. It must be one of the following values:

FLOODFILLBORDER

The fill area is bounded by the color specified by the crColor parameter. This style is identical to the filling performed by the FloodFill function.

FLOODFILLSURFACE

The fill area is defined by the color that is specified by crColor. Filling continues outward in all directions as long as the color is encountered. This style is useful for filling areas with multicolored boundaries.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

For more Information, contact us via email at info@earlsoft.co.uk.