---
title: "Matrix Constructor "
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Transforms_Matrix_ctor.htm
product: "Graphics Mill"
---

# Matrix Constructor 
 
Initializes a new instance of the [Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) class.
 
**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 Matrix()
```
 
## Remarks
  
This constructor creates the identity matrix. The identity matrix has the following structure: all elements at the main diagonal are equal to 1. All other elements are equal to 0. To check whether the current instance of this class is an identify matrix, use the [IsIdentity](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Matrix_IsIdentity.htm.md) property.
 
You can also create a matrix from the points which specify input and output quadrangles. Use [CreateFromAffinePoints(PointF\[\], PointF\[\])](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateFromAffinePoints_2_a6854ac1.htm.md) and [CreateFromProjectivePoints(PointF\[\], PointF\[\])](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_CreateFromProjectivePoints_2_a6854ac1.htm.md) static methods for this.
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Matrix Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Transforms_Matrix_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
