How to use floodfill() function ?

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

By:Vivek Kr. Agarwal
Date:2003-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher