Kept only for
sn-plugin-lib 0.1.65 and earlier. In later versions, coordinates are already Android pixels. Do not call this method, otherwise positions will be wrong.static androidPoint2Emr(point: Point, pageSize: { width: number; height: number }): Point;
Point: converted EMR coordinate point
Example
import { PointUtils, type Point } from 'sn-plugin-lib';
/**
* Example: convert a pixel point to an EMR point.
*/
export async function exampleAndroidPoint2Emr() {
const point: Point = { x: 100, y: 200 };
const pageSize = { width: 1404, height: 1872 };
return PointUtils.androidPoint2Emr(point, pageSize);
}