---
title: "Matrix.Translate"
url: "https://reference.aspose.com/imaging/net/aspose.imaging/matrix/translate/"
product: "Aspose.Imaging for .NET API Reference"
description: "Matrix method. Applies the specified translation vector to this Matrix in the specified order"
---

## Translate(float, float, MatrixOrder) {#translate_1}

Applies the specified translation vector to this Matrix in the specified order.

```csharp
public void Translate(float offsetX, float offsetY, MatrixOrder order)
```

| Parameter | Type | Description |
| --- | --- | --- |
| offsetX | Single | The offset X. |
| offsetY | Single | The offset Y. |
| order | MatrixOrder | The order. |

### See Also

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

---

## Translate(float, float) {#translate}

Applies the specified translation vector to this [`Matrix`](../) using (default) Prepend order.

```csharp
public void Translate(float tx, float ty)
```

| Parameter | Type | Description |
| --- | --- | --- |
| tx | Single | The tx. The tx. The tx. |
| ty | Single | The ty. The ty. The ty. |

### See Also

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


