private void panel1_MouseDown(object sender, MouseEventArgs e) { Risovatel.Painter(e, Graphics.FromImage(cartina)); pictureBox1.Image = cartina; IsClicked = true; }
private void panel1_MouseMove(object sender, MouseEventArgs e) { if (IsClicked) { Risovatel.Painter(e, Graphics.FromImage(cartina)); } pictureBox1.Image = cartina; }
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; } }