---
title: "Pen.RotateTransform"
url: "https://reference.aspose.com/drawing/net/aspose.drawing/pen/rotatetransform/"
product: "Aspose.Drawing for .NET API Reference"
description: "Pen method. Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation"
---

## RotateTransform(float) {#rotatetransform}

Rotates the local geometric transformation by the specified angle. This method prepends the rotation to the transformation.

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

| Parameter | Type | Description |
| --- | --- | --- |
| angle | Single | The angle of rotation. |

### See Also

* class [Pen](../)
* namespace [Aspose.Drawing](../../pen/)
* assembly [Aspose.Drawing.Common](../../../)

---

## RotateTransform(float, MatrixOrder) {#rotatetransform_1}

Rotates the local geometric transformation by the specified angle in the specified order.

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

| Parameter | Type | Description |
| --- | --- | --- |
| angle | Single | The angle of rotation. |
| order | MatrixOrder | A MatrixOrder that specifies whether to append or prepend the rotation matrix. |

### See Also

* enum [MatrixOrder](../../../aspose.drawing.drawing2d/matrixorder/)
* class [Pen](../)
* namespace [Aspose.Drawing](../../pen/)
* assembly [Aspose.Drawing.Common](../../../)


