CImageView:SaveUndoAll
The SaveUndoAll method saves an "undo" copy of all images of the CImageSet displayed in the current CImageView window.
bResult = CImageView:SaveUndoAll() |
On success, this method returns true.
On failure, this method returns false.
This method saves an undo copy of all images in the CImageView window. All images can later be restored, if desired, using the UndoAll method.
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:
|
-- attach an image window from a list of windows on the desktop |
|
-- save an undo copy of all images in the window |
|
-- for each image in the window |
|
-- get its CImage object |
|
-- add 30.5 to al pixel values |
|
|
|
-- restore all images to their state before adding 30.5. |
CImageView, Undo, SaveUndo, UndoAll, Display, CImage class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.