---
title: "LinearGradientBrush.TranslateTransform"
url: "https://reference.aspose.com/drawing/net/system.drawing.drawing2d/lineargradientbrush/translatetransform/"
product: "Aspose.Drawing for .NET API Reference"
description: "LinearGradientBrush method. Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform"
---

## TranslateTransform(float, float) {#translatetransform}

Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform.

```csharp
public void TranslateTransform(float dx, float dy)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dx | Single | The value of the translation in x. |
| dy | Single | The value of the translation in y. |

### See Also

* class [LinearGradientBrush](../)
* namespace [System.Drawing.Drawing2D](../../lineargradientbrush/)
* assembly [Aspose.Drawing](../../../)

---

## TranslateTransform(float, float, MatrixOrder) {#translatetransform_1}

Translates the local geometric transform by the specified dimensions in the specified order.

```csharp
public void TranslateTransform(float dx, float dy, MatrixOrder order)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dx | Single | The value of the translation in x. |
| dy | Single | The value of the translation in y. |
| order | MatrixOrder | The order (prepend or append) in which to apply the translation. |

### See Also

* enum [MatrixOrder](../../matrixorder/)
* class [LinearGradientBrush](../)
* namespace [System.Drawing.Drawing2D](../../lineargradientbrush/)
* assembly [Aspose.Drawing](../../../)


