示例#1
0
        //Initial shape points to be processed for X delta so that cloud moves to left.
        public Point[] ProcessedShapePoints()
        {
            var newPoints = new Point[ShapePoints.Count()];

            for (int i = 0; i < ShapePoints.Count(); i++)
            {
                newPoints[i].X = ShapePoints[i].X - DeltaX;
                newPoints[i].Y = ShapePoints[i].Y;
            }
            return(newPoints);
        }
示例#2
0
        public void ResetPoints()
        {
            t.ShapeArray = ShapePoints;
            t.BuildBoundingBox();
            SPoint sub = new SPoint(0, t.bounds.Top);

            for (int i = 0; i < ShapePoints.Count(); i++)
            {
                ShapePoints[i] -= sub;
            }
            //ShapePoints.ForEach(delegate(SPoint s) { s -= new SPoint(100,100); });
        }