---
title: "Matrix.CreateScale Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateScale_2_427c5821.htm
product: "Graphics Mill"
---

# Matrix.CreateScale Method 
 
Returns the affine [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) of the scale transform.
 
**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 static Matrix CreateScale(float dx,float dy
)
```
 
### Parameters
 
 - dx
     - Type: System.Single
The value to scale horizontally.

 - dy
     - Type: System.Single
The value to scale vertically.
 
### Return Value
A [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) of the scale transform.
   
## 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)
- [Matrix.CreateRotate(Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateRotate_1_7a94462e.htm.md)
- [Matrix.CreateTranslate(Single, Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateTranslate_2_427c5821.htm.md)
