ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > Core Component API Reference > Core Component Functions Reference > DIB Functions > IG_DIB_flush

This function flushes the DIB if it uses a memory mapped file for storing pixels.


Copy Code


Name Type Description
hIGear HIGEAR Handle of the image whose pixel data should be flushed.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++, except:


Call this function periodically to flush the DIB if the application accesses individual pixels or rasters of an image, or accesses pixel data directly by the image or raster pointer, and the DIB uses a memory mapped file for storing pixels. Usually, it is sufficient to flush the DIB after accessing of 100 - 200 Mb of pixel data.

If memory mapping is not used for the DIB, the function does nothing.

See Also:

Accessing Pixels of a Gigabyte-Sized Image

Is this page helpful?
Yes No
Thanks for your feedback.