예제 #1
0
        private void panel1_MouseDown(object sender, MouseEventArgs e)
        {
            Risovatel.Painter(e, Graphics.FromImage(cartina));
            pictureBox1.Image = cartina;

            IsClicked = true;
        }
예제 #2
0
 private void panel1_MouseMove(object sender, MouseEventArgs e)
 {
     if (IsClicked)
     {
         Risovatel.Painter(e, Graphics.FromImage(cartina));
     }
     pictureBox1.Image = cartina;
 }
예제 #3
0
        private void panel1_MouseUp(object sender, MouseEventArgs e)
        {
            if (IsClicked)
            {
                Risovatel.Painter(e, Graphics.FromImage(cartina));
                pictureBox1.Image = cartina;

                vectorBitmap      = new Bitmap(Risovatel.ResizeImageMinImage(cartina, 15));
                pictureBox2.Image = Risovatel.ResizeImageMaxImage(vectorBitmap, 300);
                var arr = Parser.BMPToArray(vectorBitmap);
                vector = Parser.ArrayToVector(arr);

                IsClicked = false;
            }
        }