MatrixTransform Class

Applies an arbitrary convex linear transformation to an image (such as perspective distortion, rotation, skew, etc).

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


public sealed class MatrixTransform : Transform


To apply a transfomation (both affine and projective), you should create a matrix of the linear transformation (see Matrix class for more details). The only limitation - the matrix should not be singular (i.e. transformation must be convex). Put this matrix to the Matrix property.

In fact, such transforms as Resize and Rotate are special cases of the linear transformations. You can emulate these transforms by providing scaling/rotating matrix to this transform. However Resize and Rotate are optimized and we recommend to use it when you need only to resize or rotate.

As for all other geometry transforms you can specify the InterpolationMode (which affects on the algorithm speed and output quality) and BackgroundColor.

Inheritance Hierarchy

L Aurigma.GraphicsMill.PipelineElement
L Aurigma.GraphicsMill.Transforms.Transform
L Aurigma.GraphicsMill.Transforms.MatrixTransform

Thread Safety

Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

See Also