---
title: "Matrix..::.Implicit Operator"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Matrix_op_Implicit_1_9f936e5e.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.Implicit Operator
 
Casts an instance of [System.Drawing.Drawing2D.Matrix](http://msdn2.microsoft.com/en-us/w8s1ct0z) to [Aurigma.GraphicsMill.Transforms.Matrix](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md).
 
**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 Shared Widening Operator CType ( _matrix As Matrix _
) As Matrix
```
 
```csharp
public static implicit operator Matrix (Matrix matrix
)
```
 
### Parameters
 
 - matrix
     - Type: [System.Drawing.Drawing2D.Matrix](http://msdn2.microsoft.com/en-us/w8s1ct0z)
 [System.Drawing.Drawing2D.Matrix](http://msdn2.microsoft.com/en-us/w8s1ct0z) value which is being casted.
 
### Return Value
Matrix casted to [Aurigma.GraphicsMill.Transforms.Matrix](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) class.
 
## Remarks
  
[System.Drawing.Drawing2D.Matrix](http://msdn2.microsoft.com/en-us/w8s1ct0z) 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/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md) supports also projective transforms, and has 9 elements (3 columns x 3 rows). When conversion is applied, last column (which is absent in GDI+ matrix) is filled with a vector (0, 0, 1).
   
## See Also

### Reference

- [Matrix Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Matrix.htm.md)
- [Implicit Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Matrix_op_Implicit.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
