Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>floodfill</b> fill area bounded by a color http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FloodFill            Fill Area Bounded By a Color

BOOL FloodFill(hDC, X, Y, rgbColor)
HDC hDC;
short X; /* Coordinates to start filling operation */
short Y;
DWORD rgbColor; /* of boundary */

Returns:        Non-zero if ok otherwise zero. Can fail if start point
                is already boundary color or point is outside of clipping
                region.

Note:           Use GetDeviceCaps to determine if FloodFill is
                possible. (RC_BITBLT)

See Also: GetDeviceCaps

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