---
title: "resize method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/rasterimage/resize/"
product: "Aspose.CAD for Python via .NET API References"
---


## resize {#int-int-aspose.cad.ResizeType}

Resizes the image.



```python
def resize(self, new_width, new_height, resize_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| new_width | int | The new width. |
| new_height | int | The new height. |
| resize_type | [`ResizeType`](/cad/python-net/aspose.cad/resizetype) | The resize type. |


## resize {#int-int-aspose.cad.ImageResizeSettings}

Resizes the image.



```python
def resize(self, new_width, new_height, settings):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| new_width | int | The new width. |
| new_height | int | The new height. |
| settings | [`ImageResizeSettings`](/cad/python-net/aspose.cad/imageresizesettings) | The resize settings. |



### See Also
* module [`aspose.cad`](../../)
* class [`RasterImage`](/cad/python-net/aspose.cad/rasterimage)
