private void pictureBox_MouseMove(object sender, MouseEventArgs e) { if (md) { _pictureBoxMouseMove.E = e; _pictureBoxMouseMove.Sender = sender; _pictureBoxMouseMove.Canvas = _canvas; _pictureBoxMouseMove.HandleEvent(); pictureBox.Image = _canvas.Bitmap; GC.Collect(); } }