
## ImageSize(width_pixels, height_pixels) {#int_int}

Initializes width and height to the given values in pixels. Initializes resolution to 96 dpi.


```python
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) {#int_int_float_float}

Initializes width, height and resolution to the given values.


```python
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](../)

