ImageEn, unit imageenproc




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


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:
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 current layers (position, size, etc, but not the layer bitmaps)
ieuFullLayer Same as ieuLayer but also saves the layer bitmaps
ieuObjectsAndLayers Saves complete state: Properties and bitmaps of all layers (TImageEnView) or objects (TImageEnVect)

- 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

See Also

Public Method  Redo
Public Method  SaveUndo