public static IEnumerable <Point> GetPoints(this InkStroke stroke) { return(stroke.GetInkPoints().Select(p => p.Position)); }