---
title: "Matrix..::.Invert Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_Invert.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Matrix.Invert Method 
 
Inverts the matrix.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Invert
```
 
```csharp
public void Invert()
```
 
## Remarks
  
The matrix cannot be inverted when its determinant is 0 (i.e. the matrix is singular). This method will throw an exception in this case.
 
To check whether the matrix can be inverted, you can use the [IsInvertible](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Matrix_IsInvertible.htm.md) property.
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
