getBoundsInPixels2 method

getBoundsInPixels2(scale, dpi)

Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.

getBoundsInPixels2(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).

Remarks

This method converts Aspose.Words.Rendering.NodeRendererBase.BoundsInPoints into rectangle in pixels.

Returns

The actual (as rendered on the page) bounding box of the shape in pixels.

getBoundsInPixels2(scale, horizontalDpi, verticalDpi)

Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.

getBoundsInPixels2(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).

Remarks

This method converts Aspose.Words.Rendering.NodeRendererBase.BoundsInPoints into rectangle in pixels.

Returns

The actual (as rendered on the page) bounding box of the shape in pixels.

See Also