ImageGear Professional DLL v17.1 for Windows Accusoft
IG_DIB_flood_fill
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_flood_fill

Glossary Item Box

This function fills an area with a color, starting at the specified point.

Declaration:

  Copy Code
AT_ERRCOUNT ACCUAPI IG_DIB_flood_fill(
        HIGEAR hIGear,
        AT_INT xPos, 
        AT_INT yPos, 
        LPAT_PIXEL lpFillPixel,
        LPAT_PIXEL lpBorderPixel
);

Arguments:

hIGear Image to process.
xPos X coordinate of a point inside the area to be filled.
yPos X coordinate of a point inside the area to be filled.
lpFillPixel Fill color.
lpBorderPixel Color of the border surrounding the area.

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional, except:
Indexed RGB – 1 bpp;
Grayscale – 1 bpp.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Sample:

Pixel Access

Remarks:

There are two ways to specify the area:

©2012. Accusoft Corporation. All Rights Reserved.