Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a program which enables me to draw on the webcam frame using a red colored object. Now for erasing my drawing, i have used the mousemove event or the left click event which enables me to erase the drawing and everything works fine. But when i have drawn a lot of stuffs on the webcam frame and use the mouse event to erase the drawing can be little hectic. So, i was wondering if there was a way i can actually delete the whole frame and get a fresh frame with no drawing in it. Is it possible? Thanks
Posted
Comments
Richard MacCutchan 23-Dec-14 11:01am    
You should keep details of all the drawings as you do them in a list of some type. You can then step through the list in reverse order removing each drawing element.

1 solution

you must make a copy of the original frame at start of the process. If you also store allsteps you can implement an "UnDo" function which only repeats the first steps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900