This function calls IG_image_delete() for all valid pages of a multi-page image and frees all resources allocated with multi-page image handle.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_mpi_delete( HMIGEAR hMIGear ); |
Name | Type | Description |
---|---|---|
hMIGear | HMIGEAR | Handle to allocated multi-page image. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
All pixel formats supported by ImageGear for C and C++.
Copy Code
|
|
---|---|
HMIGEAR hMIGear; /* handle to multi-page image */ AT_ERRCOUNT nErrCount = IGE_SUCCESS; /* will hold returned error count */ nErrCount = IG_mpi_create( &hMIGear, 0 ); ... /* any operations with hMIGear */ nErrCount = IG_mpi_delete( hMIGear ); |
If it is associated with external file then it is closed with IG_mpi_close() before deletion.