I draw a rectangle on the image which is in PictureBoxcontrol.
For drawing I use this function:
Rectangle rect = contourDetected.BoundingRectangle;
Bitmap bmpOriginalImage = new Bitmap(pbxOriginalImage.Image);
img.Draw(rect, new Bgr(Color.Aquamarine), 2);
pbxOriginalImage.Image = img.ToBitmap();
Is there any function that erase last drawn curve?