---
title: "TransformBrush.ScaleTransform"
url: "https://reference.aspose.com/psd/net/aspose.psd.brushes/transformbrush/scaletransform/"
product: "Aspose.PSD for .NET API Reference"
description: "TransformBrush method. Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform"
---

{{< psd/tize >}}
## ScaleTransform(float, float) {#scaletransform}

Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.

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

| Parameter | Type | Description |
| --- | --- | --- |
| sx | Single | The amount by which to scale the transform in the x-axis direction. |
| sy | Single | The amount by which to scale the transform in the y-axis direction. |

### See Also

* class [TransformBrush](../)
* namespace [Aspose.PSD.Brushes](../../../aspose.psd.brushes/)
* assembly [Aspose.PSD](../../../)

---

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

Scales the local geometric transform by the specified amounts in the specified order.

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

| Parameter | Type | Description |
| --- | --- | --- |
| sx | Single | The amount by which to scale the transform in the x-axis direction. |
| sy | Single | The amount by which to scale the transform in the y-axis direction. |
| order | MatrixOrder | A [`MatrixOrder`](../../../aspose.psd/matrixorder/) that specifies whether to append or prepend the scaling matrix. |

### See Also

* enum [MatrixOrder](../../../aspose.psd/matrixorder/)
* class [TransformBrush](../)
* namespace [Aspose.PSD.Brushes](../../../aspose.psd.brushes/)
* assembly [Aspose.PSD](../../../)


