Exemple #1
0
        public Bitmap Move(Point crnt)
        {
            Point delta = new Point(crnt.X - drawing.startPoint.X, crnt.Y - drawing.startPoint.Y);

            drawing.startPoint = crnt;
            for (int p = 0; p < Points.Count(); p++)
            {
                Point i = Points[p];
                Points[p] = new Point(i.X + delta.X, i.Y + delta.Y);
            }
            return(Mover.MoveFigure(Color, Width, Points.ToArray()));
        }