Skip to main content
static emrPoint2Android(point: Point, pageSize: { width: number; height: number }): Point;
Parameters
ParameterTypeDescription
pointPointEMR coordinate point
pageSizeSizePage pixel size
Returns
  • Point: converted screen pixel point

Example

import { PointUtils, type Point } from 'sn-plugin-lib';

/**
 * Example: convert an EMR point to a pixel point.
 */
export async function exampleEmrPoint2Android() {
 const point: Point = { x: 15819, y: 11864 };
 const pageSize = { width: 1404, height: 1872 };

 return PointUtils.emrPoint2Android(point, pageSize);
}