Exemplo n.º 1
0
        public static List <Point> ToScreen(this ICoordinateTransform converter, IEnumerable <Point> dataPoints)
        {
            ICollection <Point> pointsCollection = dataPoints as ICollection <Point>;
            List <Point>        res;

            if (pointsCollection != null)
            {
                res = new List <Point>(pointsCollection.Count);
            }
            else
            {
                res = new List <Point>();
            }

            foreach (var point in dataPoints)
            {
                res.Add(converter.ToScreen(point));
            }

            return(res);
        }
Exemplo n.º 2
0
 public static Point ToScreen(this Point p, ICoordinateTransform converter)
 {
     return(converter.ToScreen(p));
 }
 public static Point ToScreen(this Point p, ICoordinateTransform converter)
 {
     return converter.ToScreen(p);
 }