예제 #1
0
        public void MouseMove(Pen pen, MouseEventArgs e)
        {
            if (_rotateFigure != null)
            {
                PointF delta = new PointF(e.X - _startPoint.X, e.Y - _startPoint.Y);

                _startPoint = e.Location;

                _rotateFigure.Rotate(delta.X / 3);

                _singletone.PictureBox1.Image = _singletone.Canvas.DrawIt(_rotateFigure, new Pen(_rotateFigure.Color, _rotateFigure.Width));
                // pictureBox1.Image = canvas.DrawIt(movingFigure, new Pen(movingFigure.Color, movingFigure.Width));

                GC.Collect();
            }
        }