---
title: "Graphics.ScaleTransform"
url: "https://reference.aspose.com/drawing/net/aspose.drawing/graphics/scaletransform/"
product: "Aspose.Drawing for .NET API Reference"
description: "Graphics method. Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the objects transformation matrix"
---

## ScaleTransform(float, float) {#scaletransform}

Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix.

```csharp
public void ScaleTransform(float sx, float sy)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sx | Single | Scale factor in the x direction. |
| sy | Single | Scale factor in the y direction. |

### See Also

* class [Graphics](../)
* namespace [Aspose.Drawing](../../graphics/)
* assembly [Aspose.Drawing.Common](../../../)

---

## ScaleTransform(float, float, MatrixOrder) {#scaletransform_1}

Applies the specified scaling operation to the transformation matrix of this Graphics in the specified order.

```csharp
public void ScaleTransform(float sx, float sy, MatrixOrder order)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sx | Single | Scale factor in the x direction. |
| sy | Single | Scale factor in the y direction. |
| order | MatrixOrder | Member of the MatrixOrder enumeration that specifies whether the scaling operation is prepended or appended to the transformation matrix. |

### See Also

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


