Pinta.Core.SimpleHistoryItem.Undo C# (CSharp) Méthode

Undo() public méthode

public Undo ( ) : void
Résultat void
        public override void Undo()
        {
            // Grab the original surface
            ImageSurface surf = PintaCore.Layers[layer_index].Surface;

            // Undo to the "old" surface
            PintaCore.Layers[layer_index].Surface = old_surface;

            // Store the original surface for Redo
            old_surface = surf;

            PintaCore.Workspace.Invalidate ();
        }