ImageGear for C and C++ on Linux v18.8 - Updated
IG_close
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Linux Initialize and Close Functions > IG_close

This function frees resources and memory that ImageGear allocated while it was in use. When your application no longer needs the use of ImageGear functions, you should close ImageGear using this function. This function should be called before the application program exits.

lpData must be the same value as one passed to preceding call of IG_initialize().

Declaration:

 
Copy Code

AT_ERRCOUNT IG_close ( LPVOID lpData);

Arguments:

Name Type Description
lpData LPVOID This argument currently isn’t used, and is reserved for future use. Must be set to NULL for now.

Return Value:

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

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

ImageGearDemo

Example:

 
Copy Code

/* Close ImageGear */
nErrCount = IG_close (lpData);

See Also:

IG_initialize()