---
title: "Matrix.Rotate"
url: "https://reference.aspose.com/imaging/net/aspose.imaging/matrix/rotate/"
product: "Aspose.Imaging for .NET API Reference"
description: "Matrix method. Applies a clockwise rotation of an amount specified in the angle parameter around the origin zero x and y coordinates for this Matrix in the specified order"
---

## Rotate(float, MatrixOrder) {#rotate_1}

Applies a clockwise rotation of an amount specified in the angle parameter, around the origin (zero x and y coordinates) for this Matrix in the specified order.

```csharp
public void Rotate(float angle, MatrixOrder order)
```

| Parameter | Type | Description |
| --- | --- | --- |
| angle | Single | The rotate angle. |
| order | MatrixOrder | The matrix order. |

### See Also

* enum [MatrixOrder](../../matrixorder/)
* class [Matrix](../)
* namespace [Aspose.Imaging](../../matrix/)
* assembly [Aspose.Imaging](../../../)

---

## Rotate(float) {#rotate}

Applies a clockwise rotation of an amount specified in the angle parameter, around the origin (zero x and y coordinates) for this Matrix in the default (Prepend) order.

```csharp
public void Rotate(float angle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| angle | Single | The rotate angle. |

### See Also

* class [Matrix](../)
* namespace [Aspose.Imaging](../../matrix/)
* assembly [Aspose.Imaging](../../../)


