Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Any one have a undo function or some help make one?

Author
Message
Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Jan 2009 06:40
i have paint program buti need a undo function or a i dea on how to do one thanks
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 15th Jan 2009 09:24
What you can do is store an image of the picture after every update (maybe after drawing a circle or a line, just every time the mouse is pressed once and then released.). Then when the user presses "undo", you get the last saved image and replace it with the current image, and so on.

TheComet

Peachy, and the Chaos of the Gems

Caleb1994
17
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 15th Jan 2009 17:14
hmmm good idea i think i'll try that thanks comet

Login to post a reply

Server time is: 2026-07-06 10:01:55
Your offset time is: 2026-07-06 10:01:55