CImageView:UndoAll
The UndoAll method restores all images of the CImageSet displayed in the current CImageView window by replacing each with its undo copy.
bResult = CImageView:UndoAll() |
On success, this method returns true.
On failure, this method returns false.
This method restores all images in the CImageView window to their saved state. All images must have been saved either by calling the SaveUndoAll method or by calling SaveUndo for one or more of the images.
The following script attaches an image window on the desktop and saves an undo copy for all of its images. The images are changed by adding 30.5 to each pixel, then restored using UndoAll:
|
-- attach an image window from a list of windows on the desktop |
|
-- save all images in their current state |
|
-- for each image in the window |
|
-- get the next image |
|
-- add 30.5 to each pixel value |
|
|
|
-- restore all images to their state before adding 30.5. |
CImageView, Undo, SaveUndo, SaveUndoAll, Display, CImage class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.