---
title: "Matrix.ToGdiPlusMatrix Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Matrix_ToGdiPlusMatrix.htm
product: "Graphics Mill"
---

# Matrix.ToGdiPlusMatrix Method 
 
Returns a matrix converted to System.Drawing.Drawing2D.Matrix.
 
**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 ToGdiPlusMatrix()
```
 
### Return Value
 System.Drawing.Drawing2D.Matrix class instance.
 
## Remarks
  
System.Drawing.Drawing2D.Matrix is intended only for affine transforms, and it has only 6 elements (2 columns x 3 rows). [Aurigma.GraphicsMill.Transforms.Matrix](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) supports also projective transforms, and has 9 elements (3 columns x 3 rows). When conversion is applied, the last column is discarded (since it is not supported by GDI+ matrix). So if you are converting matrix of the projective transform, you will get another result with GDI+ matrix.
   
## 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)
