getBoundsInPixels2 method
Contents
[
Hide
]getBoundsInPixels2(scale, dpi)
Calculates the bounds of the shape in pixels for a specified zoom factor and resolution.
getBoundsInPixels2(scale: number, dpi: number)
Parameter | Type | Description |
---|---|---|
scale | number | The zoom factor (1.0 is 100%). |
dpi | number | The 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)
Parameter | Type | Description |
---|---|---|
scale | number | The zoom factor (1.0 is 100%). |
horizontalDpi | number | The horizontal resolution to convert from points to pixels (dots per inch). |
verticalDpi | number | The 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
- module Aspose.Words.Rendering
- class NodeRendererBase