Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>floodfill()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FloodFill()
Fill a screen area with a colour
------------------------------------------------------------------------------

Syntax
FloodFill( <hDC>, <nX>, <nY>, <nColour> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nX>, <nY> specify the position of the top left-hand corner of
the rectangle in pixels.

<nColour> is the colour of the boundary.  Use one of the pre-
defined colours (COLOR_* in WINDOWS.CH), or specify your own
using the RGB() macro.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function fills an area of a window bounded by the
<nColour> parameter, using the current brush.

The area begins at the position specified by <nX> and <nY>,
and extends in all directions to the colour boudary.

Example
FloodFill( hDC, 200, 200, RGB( 100, 100, 100 ) )


See Also: CreateHatchBrush() DeleteObject() GetStockObject() SelectObject()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson