While some posts in this topic are more current, this topic was posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 30, 2009 12:50:02 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
This simple C# project (built in VS 2008) uses the LEADTOOLS v16.5 .NET libraries to illustrate one implementation of undo and redo operations. There are three simple commands that can be performed, but any RasterCommand could use this implementation. This simplified implementation uses two stacks to hold the commands that have been run, and a list of temporary files that have been created for the undo process. When a command is "undone", the temporary file create is reloaded, and the file is destroyed. When any command is performed, a temporary file is created so the process can be undone.
When the application exits, all of the temporary files are deleted.
For an example in the API, please see the following forum post:
http://support.leadtools.com/SupportPortal/CS/forums/18720/ShowPost.aspx
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#2
Posted
:
Thursday, December 28, 2017 9:56:06 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 70
Was thanked: 4 time(s) in 4 post(s)
Attached is an updated version of this demo using VS 2017 and LEADTOOLS v19.
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.