---
title: "SVGTransform.SetScale"
url: "https://reference.aspose.com/html/net/aspose.html.dom.svg.datatypes/svgtransform/setscale/"
product: "Aspose.HTML for .NET API Reference"
description: "SVGTransform SetScale method. Sets the transform type to SVG_TRANSFORM_SCALE with parameters sx and sy defining the scale amounts"
---

## SVGTransform.SetScale method

Sets the transform type to SVG_TRANSFORM_SCALE, with parameters sx and sy defining the scale amounts.

```csharp
public void SetScale(float sx, float sy)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sx | Single | The scale amount in X. |
| sy | Single | The scale amount in Y. |

### Exceptions

| exception | condition |
| --- | --- |
| [DOMException](../../../aspose.html.dom/domexception/) | Code [`NO_MODIFICATION_ALLOWED_ERR`](../../../aspose.html.dom/domexception/no_modification_allowed_err/). Raised on an attempt to change the value of a read only attribute. |

### See Also

* class [SVGTransform](../)
* namespace [Aspose.Html.Dom.Svg.DataTypes](../../../aspose.html.dom.svg.datatypes/)
* assembly [Aspose.HTML](../../../)
