I think you'll have to create an "offline" area to draw on, and then paint the offline on the "Onlinearea".
(E.g. Doublebuffered)
Or you can save the actual mousepositions everytime the mousepointer moves in the Image (Usine event OnMouseMove), and draw them out in the Paint-event. Then you can implement "Undo" very easy.
But I don't recommend this solutions if you are going to draw compex images Andreas Nordlund
Software developer
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.