## 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 [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)

---

## 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](../../../system.drawing.drawing2d/matrixorder/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


