
## __init__ {#}

Initializes a new instance of the [`Size`](/html/python-net/aspose.html.drawing/size) class.



```python
def __init__(self):
    ...
```




## __init__ {#int-int}

Initializes a new instance of the [`Size`](/html/python-net/aspose.html.drawing/size) class and specify a Height and Width in pixels.



```python
def __init__(self, width, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| width | int | The width. |
| height | int | The height. |


## __init__ {#aspose.html.drawing.Length-aspose.html.drawing.Length}

Initializes a new instance of the [`Size`](/html/python-net/aspose.html.drawing/size) class.



```python
def __init__(self, width, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| width | [`Length`](/html/python-net/aspose.html.drawing/length) | The width. |
| height | [`Length`](/html/python-net/aspose.html.drawing/length) | The height. |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`Size`](/html/python-net/aspose.html.drawing/size)
