getSizeInPixels2 method

getSizeInPixels2(scale, dpi)

Calculates the page size in pixels for a specified zoom factor and resolution.

getSizeInPixels2(scale: number, dpi: number)
ParameterTypeDescription
scalenumberThe zoom factor (1.0 is 100%).
dpinumberThe resolution (horizontal and vertical) to convert from points to pixels (dots per inch).

Returns

The size of the page in pixels.

getSizeInPixels2(scale, horizontalDpi, verticalDpi)

Calculates the page size in pixels for a specified zoom factor and resolution.

getSizeInPixels2(scale: number, horizontalDpi: number, verticalDpi: number)
ParameterTypeDescription
scalenumberThe zoom factor (1.0 is 100%).
horizontalDpinumberThe horizontal resolution to convert from points to pixels (dots per inch).
verticalDpinumberThe vertical resolution to convert from points to pixels (dots per inch).

Returns

The size of the page in pixels.

See Also