Aurigma Graphics Mill 5.5 for .NET
Bitmap..::.UndoRedoEnabled Property
Enables or disables undo/redo functionality.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Remarks
You can use this property to disable undo/redo functionality for some time. It is useful when, for example, you apply some set of effects or draw a number of shapes as single atomic operation. In this case you likely do not want to undo sub-operations, but need to undo entire operation at once. For example, you draw a star (with several calls of DrawLine(Pen, Int32, Int32, Int32, Int32) method). Your actions should be the following:
- Set this property to false.
- Draw a star by attaching this Bitmap to GdiGraphics. Draw attention, although event Changed fires, bitmap state is not stored.
- After you finish, set this property back to true.
- Save the result state with SaveState()()() method.
After this you can call Undo()()() method and entire star is erased instead of single line you draw last time.
By default this property is true.