Encapsulates a 3-by-3 affine matrix that represents a geometric transform.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class Matrix
The 3x3 matrix is used to apply geometry transformation on a bitmap. Geometry transformation can be both affine (such as scale, skew or rotate) and projective (such as perspective correction).
You can create this class instance in two ways: create a new matrix and then manually fill it using Elements property, or generate it from points representing affine or projective transformation (see CreateFromAffinePoints(PointF[], PointF[]) and CreateFromProjectivePoints(PointF[], PointF[]) methods for more details).
This class also implements some matrix algebraic operations, such as matrix inversion, multiplication, determinant calculation, and etc. Moreover you can apply affine operations at the matrix: rotate (Rotate(Single) and RotateAt(Single, PointF) methods), scale (Scale(Single, Single) method), and translate (Translate(Single, Single) method).