## ImageSize::ImageSize(int32_t, int32_t) constructor


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

```cpp
Aspose::Words::Drawing::ImageSize::ImageSize(int32_t widthPixels, int32_t heightPixels)
```


| Parameter | Type | Description |
| --- | --- | --- |
| widthPixels | int32_t | Width in pixels. |
| heightPixels | int32_t | Height in pixels. |

## See Also

* Class [ImageSize](../)
* Namespace [Aspose::Words::Drawing](../../)
* Library [Aspose.Words for C++](../../../)
## ImageSize::ImageSize(int32_t, int32_t, double, double) constructor


Initializes width, height and resolution to the given values.

```cpp
Aspose::Words::Drawing::ImageSize::ImageSize(int32_t widthPixels, int32_t heightPixels, double horizontalResolution, double verticalResolution)
```


| Parameter | Type | Description |
| --- | --- | --- |
| widthPixels | int32_t | Width in pixels. |
| heightPixels | int32_t | Height in pixels. |
| horizontalResolution | double | Horizontal resolution in DPI. |
| verticalResolution | double | Vertical resolution in DPI. |

## See Also

* Class [ImageSize](../)
* Namespace [Aspose::Words::Drawing](../../)
* Library [Aspose.Words for C++](../../../)
