ImageGear for C and C++ on Linux v18.10 - Updated
ART_edit_undo_clear
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Edit Undo Functions > ART_edit_undo_clear

This function clears all pending undo operations from memory.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_edit_undo_clear(HIGEAR hIGear);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle to the image.

Return Value:

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

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Example:

 
Copy Code
AT_ERRCOUNT nErrcount;
HIGEAR hIGear;
nErrcount = ART_edit_undo_clear(hIGear);

Remarks:

A subsequent call to ART_edit_undo() has no effect on the marks associated with the specified HIGEAR image.

An error is set if any of the following conditions are met: