public Form1() { InitializeComponent(); Canvas = pictureBox1.CreateGraphics(); CurrentCutter = new Cutter(); CurrentPolygon = new Polygon(); ButtonPolygonDraw.Enabled = false; }
public Form1() { InitializeComponent(); cutter = new Cutter(); polygon = new List <PointF>(); saved_picture = new Bitmap(canvasBase.Width, canvasBase.Height); g = Graphics.FromImage(saved_picture); g_move = canvasBase.CreateGraphics(); canvasBase.Image = saved_picture; pen_cutter = new Pen(Color.Black, 1); pen_lines = new Pen(Color.Red, 1); pen_highlight = new Pen(Color.Blue, 2); pictureBoxColor.BackColor = Color.Blue; radioButtonCutter.Checked = true; }