hElement = WinXDrawFilledArea (hWnd, hBrush, colBound, x, y)
Floodfills an area with a brush
Parameter | Description |
---|---|
hWnd | The handle to the window to draw on |
hBrush | The handle to the brush to draw with |
colBound | The colour of the boundary of the area to fill |
x, y | The point at which to start filling |
The id of the floodfill or -1 on fail
If you register the onPaint callback, this function has no effect. This line will not be visible untill you call the WinXUpdate function. You can use the id returned by this function to undo the ellipse with the WinXUndo function.
This is the same as the floodfill tool in MS Paint.
'Create a brush 'fill an area bounded by a red outline |
WinXDrawFilledRect
WinXDrawFilledEllipse
onPaint (Callback)
WinXUpdate
WinXUndo