This documentation is for the old version. Go to the latest Graphics Mill docs

Matrix.Implicit Operator

Casts an instance of System.Drawing.Drawing2D.Matrix to Aurigma.GraphicsMill.Transforms.Matrix.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Widening Operator CType ( _
	matrix As Matrix _
) As Matrix
C#
public static implicit operator Matrix (
	Matrix matrix
)

Parameters

matrix

Type: System.Drawing.Drawing2D.Matrix

System.Drawing.Drawing2D.Matrix value which is being casted.

Return Value

Matrix casted to Aurigma.GraphicsMill.Transforms.Matrix class.

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 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