public void CLEAR() { CanvasBoard.Invalidate(); hasDrawn = false; points.CLEAR(); vectors.Clear(); GlobalDrawingIndex = 0; }
private void DeleteBtn_Click(object sender, EventArgs e) { //add the vector to a list and then delete the vector CanvasBoard.Invalidate(); hasDrawn = false; points.CLEAR(); vectors.Clear(); GlobalDrawingIndex = 0; }
public Form1() { InitializeComponent(); GlobalDrawingIndex = 0; points = new fPointField(280); g = CanvasBoard.CreateGraphics(); g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; pen = new Pen(Color.Black, 5); pen.StartCap = pen.EndCap = System.Drawing.Drawing2D.LineCap.Round; }