public static void mapPoints(this SKMatrix matrix, float[] points) { var newPoints = matrix.MapPoints(new SKPoint[] { new SKPoint(points[0], points[1]), new SKPoint(points[2], points[3]) }); points[0] = newPoints[0].X; points[1] = newPoints[0].Y; points[2] = newPoints[1].X; points[3] = newPoints[1].Y; }
public void TransformPoints(PointF[] points) { var pts = points.Select(p => new SKPoint(p.X, p.Y)).ToArray(); var mappedPoints = _m.MapPoints(pts); for (int i = 0; i < mappedPoints.Length; i++) { points[i].X = mappedPoints[i].X; points[i].Y = mappedPoints[i].Y; } }
public static void TransformPoints(this SKMatrix matrix, SKPoint[] points) { matrix.MapPoints(points); }