
## translate {#float-float}

Translates the matrix by the specified offset values.



```python
def translate(self, offset_x, offset_y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| offset_x | float | The offset value along the x-axis. |
| offset_y | float | The offset value along the y-axis. |


## translate {#float-float-aspose.html.drawing.WebMatrixOrder}

Translates the matrix by the specified offset values in the specified order.



```python
def translate(self, offset_x, offset_y, order):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| offset_x | float | The offset value along the x-axis. |
| offset_y | float | The offset value along the y-axis. |
| order | [`WebMatrixOrder`](/html/python-net/aspose.html.drawing/webmatrixorder) | The order in which translation is applied. |



### See Also
* module [`aspose.html.drawing`](../../)
* class [`IMatrix`](/html/python-net/aspose.html.drawing/imatrix)
