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


## rotate {#float-bool-aspose.cad.Color}

Rotate image around the center.



```python
def rotate(self, angle, resize_proportionally, background_color):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. |
| resize_proportionally | bool | if set to `true` you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. |
| background_color | [`Color`](/cad/python-net/aspose.cad/color) | Color of the background. |



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