//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); }
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); }); }