get_size_in_pixels method
Contents
[
Hide
]get_size_in_pixels(scale, dpi)
Calculates the page size in pixels for a specified zoom factor and resolution.
def get_size_in_pixels(self, scale: float, dpi: float):
...
Parameter | Type | Description |
---|---|---|
scale | float | The zoom factor (1.0 is 100%). |
dpi | float | The resolution (horizontal and vertical) to convert from points to pixels (dots per inch). |
Returns
The size of the page in pixels.
get_size_in_pixels(scale, horizontal_dpi, vertical_dpi)
Calculates the page size in pixels for a specified zoom factor and resolution.
def get_size_in_pixels(self, scale: float, horizontal_dpi: float, vertical_dpi: float):
...
Parameter | Type | Description |
---|---|---|
scale | float | The zoom factor (1.0 is 100%). |
horizontal_dpi | float | The horizontal resolution to convert from points to pixels (dots per inch). |
vertical_dpi | float | The vertical resolution to convert from points to pixels (dots per inch). |
Returns
The size of the page in pixels.
See Also
- module aspose.words.rendering
- class PageInfo