---
title: "Matrix.Scale Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_Scale_2_427c5821.htm
product: "Graphics Mill"
---

# Matrix.Scale Method 
 
Applies the specified scale vector to this [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) by prepending the scale vector.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void Scale(float scaleX,float scaleY
)
```
 
### Parameters
 
 - scaleX
     - Type: System.Single
The value by which to scale this [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) in the x-axis direction.

 - scaleY
     - Type: System.Single
The value by which to scale this [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) in the y-axis direction.
 
## Remarks
  
Internally the scaling is applied by multiplying this instance of the matrix by the affine matrix of scale. Left-sided multiplication is made.
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
