Pinta.Core.SimpleHistoryItem.Undo C# (CSharp) 메소드

Undo() 공개 메소드

public Undo ( ) : void
리턴 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 ();
        }