Number Of Page View:100,000+/Months
LOGIN |New User


How to use floodfill() function ?
The main issue of making floodfill function is that it connect the connected pixels of an entire area with same color.It also called Bucket tool in all programming languages.
  Keep one thing in mind FloodFill function has only compatibility with 16 bits operating system.You should use the ExtFloodFill function with FLOODFILLBORDER.
BOOL FloodFill(
     HDC hdc,          // handle to DC
     int nXStart,      // starting x-coordinate
     int nYStart,      // starting y-coordinate
     COLORREF crFill   // fill color
hdc -> Handle to a device context.
nXStart->Starting X-Coordinate.
nYStart->Starting Y-Coordinate.
crFill->Then area to be filled
Posted By: Name:Rajesh Kr URL: How to use floodfill() function ?