public void TestCreatePathPointsOnePoint() { var builder = new XInkStrokeBuilder(); var inkPoints = new[] { new XInkPoint(new Point(0, 0), 1f, 0f, 0f, 0) }; using var stroke = builder.CreateStrokeFromInkPoints(inkPoints); InkRenderer.CreatePathPoints(stroke); }
public void TestCreatePathPoints(double x1, double y1, double x2, double y2) { var builder = new XInkStrokeBuilder(); var inkPoints = new[] { new XInkPoint(new Point(x1, y1), 1f, 0f, 0f, 0), new XInkPoint(new Point(x2, y2), 1f, 0f, 0f, 0), }; using var stroke = builder.CreateStrokeFromInkPoints(inkPoints); var points = InkRenderer.CreatePathPoints(stroke); foreach (var item in points) { System.Diagnostics.Debug.WriteLine($"{item.X}, {item.Y}"); } }