ImageSize constructor
ImageSize(width_pixels, height_pixels)
Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.
def __init__(self, width_pixels: int, height_pixels: int):
...
Parameter | Type | Description |
---|---|---|
width_pixels | int | Width in pixels. |
height_pixels | int | Height in pixels. |
ImageSize(width_pixels, height_pixels, horizontal_resolution, vertical_resolution)
Initializes width, height and resolution to the given values.
def __init__(self, width_pixels: int, height_pixels: int, horizontal_resolution: float, vertical_resolution: float):
...
Parameter | Type | Description |
---|---|---|
width_pixels | int | Width in pixels. |
height_pixels | int | Height in pixels. |
horizontal_resolution | float | Horizontal resolution in DPI. |
vertical_resolution | float | Vertical resolution in DPI. |
See Also
- module aspose.words.drawing
- class ImageSize