public SKPoint[] PixelsToValue(params SKPoint[] points) { // invert all matrixes to convert back to the original value MatrixOffset.TryInvert(out SKMatrix tmp); points = tmp.MapPoints(points); ViewPortHandler.TouchMatrix.TryInvert(out tmp); points = tmp.MapPoints(points); MatrixValueToPx.TryInvert(out tmp); return(tmp.MapPoints(points)); }
public SKPoint PixelsToValue(float x, float y) { // invert all matrixes to convert back to the original value MatrixOffset.TryInvert(out SKMatrix tmp); var point = tmp.MapPoint(x, y); ViewPortHandler.touchMatrix.TryInvert(out tmp); point = tmp.MapPoint(point); MatrixValueToPx.TryInvert(out tmp); return(tmp.MapPoint(point)); }