
## scale {#float-float}

Scales the matrix by the specified scale factors uniformly.



```python
def scale(self, scale_x, scale_y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| scale_x | float | The uniform scale factor. |
| scale_y | float | The uniform scale factor. |


## scale {#float-float-aspose.html.drawing.WebMatrixOrder}

Scales the matrix by the specified scale factors in the specified order.



```python
def scale(self, scale_x, scale_y, order):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| scale_x | float | The scale factor along the x-axis. |
| scale_y | float | The scale factor along the y-axis. |
| order | [`WebMatrixOrder`](/html/python-net/aspose.html.drawing/webmatrixorder) | The order in which scaling is applied. |



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