Beispiel #1
0
        public override SKPath GetPath()
        {
            if (path != null)
            {
                return(path);
            }

            if (Points == null || Points.Count == 0)
            {
                return(null);
            }

            var points = Points.AsSKPointCollection();

            path = new SKPath();
            path.MoveTo(points.First());
            foreach (var point in points.Skip(1))
            {
                path.LineTo(point);
            }

            return(path);
        }