ImageEn, unit imageenproc

TImageEnProc.SaveRedo

TImageEnProc.SaveRedo

Declaration

procedure SaveRedo(Source: TIEUndoSource = ieuImage); overload;
procedure SaveRedo(const Caption: string; Source: TIEUndoSource = ieuImage); overload;

Description

Saves the current image to the Redo stack (i.e. after the next change, calling Redo will return us to this state).
Parameter Description
Caption Description of the saved redo (which will be assigned to RedoCaptions)
Source Specifies what to save (see below)

Values for Source:
Value Description
ieuUnknown Unexpected source
ieuImage The bitmap (of the current layer if there are multiple layers)
ieuSelection The area the user has selected (Not the bitmap content within the selection, just the selection dimensions)
ieuObject All objects of a TImageEnVect
ieuLayer Properties of all existing layers (position, size, etc, but not the layer bitmaps)
ieuFullLayer Same as ieuLayer but also saves the layer bitmaps
ieuObjectsAndLayers (All Layers) Saves complete state: Properties and bitmaps of all layers (TImageEnView) or objects (TImageEnVect)

Note:
You do not need to manually call SaveRedo if you have enabled AutoUndo
ieuLayer and ieuFullLayer do not restore removed layers, or redact added layers. Use ieuObjectsAndLayers instead
For TImageEnVect, ieuObject and ieuObjectsAndLayers are the same, except that ieuObjectsAndLayers also saves the background image
If you are unsure, you can use ieuObjectsAndLayers to save everything to the undo stack

See Also

Redo
SaveUndo