ImageGear for C and C++ on Windows v19.6 - Updated
ART_edit_undo
API Reference Guide > ART Component API Reference > ART Component Functions Reference > Edit Undo Functions > ART_edit_undo

This function reverses any changes made to any mark.

Declaration:

 
Copy Code
AT_ERRCOUNT ART_edit_undo(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++.

Sample:

Annotation

Example:

 
Copy Code
HIGEAR hIGear; /* HIGEAR handle of image */
AT_ERRCOUNT nErrcount; /* tally of IG errors on */
/* stack  */
HWND hWnd; /* Windows handle to */
/* image window  */
nErrcount = ART_edit_undo(hIGear);
nErrcount = ART_GUI_mark_paint(hIGear, IG_GRP_DEFAULT, 
ART_INVALID_ID, hWnd, TRUE);

Remarks:

Reversible operations include: creation, modification, selection, and deletion of marks. To clear the list of undo operations stored in memory, call ART_edit_undo_clear() function.

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