undo_freeze


Description:

public bool undo_freeze ()

Freeze the image's undo stack.

This procedure freezes the image's undo stack, allowing subsequent operations to ignore their undo steps. This is generally called in conjunction with undo_thaw to temporarily disable an image undo stack. This is advantageous because saving undo steps can be time and memory intensive. undo_freeze / undo_thaw and undo_disable / undo_enable differ in that the former does not free up all undo steps when undo is thawed, so is more suited to interactive in-situ previews. It is important in this case that the image is back to the same state it was frozen in before thawing, else 'undo' behavior is undefined.

Parameters:

this

The image.

Returns:

TRUE if the image undo has been frozen.