Skip to main content
static androidPoint2Emr(point: Point, pageSize: { width: number; height: number }): Point;
Parameters
ParameterTypeDescription
pointPointScreen pixel coordinate point
pageSizeSizePage pixel size
Returns
  • 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);
}