예제 #1
0
파일: Form1.cs 프로젝트: shlyapos/bmstu_cg
        public Form1()
        {
            InitializeComponent();
            Canvas = pictureBox1.CreateGraphics();

            CurrentCutter  = new Cutter();
            CurrentPolygon = new Polygon();

            ButtonPolygonDraw.Enabled = false;
        }
예제 #2
0
        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;
        }