IMatrix Interface

IMatrix interface

Represents a matrix used for transformations.

public interface IMatrix

Properties

NameDescription
IsIdentity { get; }Gets a value indicating whether this matrix is the identity matrix.
IsInvertible { get; }Gets a value indicating whether this matrix is invertible.
M11 { get; set; }Gets or sets the value in the first row and first column of the matrix.
M12 { get; set; }Gets or sets the value in the first row and second column of the matrix.
M21 { get; set; }Gets or sets the value in the second row and first column of the matrix.
M22 { get; set; }Gets or sets the value in the second row and second column of the matrix.
M31 { get; set; }Gets or sets the value in the third row and first column of the matrix.
M32 { get; set; }Gets or sets the value in the third row and second column of the matrix.

Methods

NameDescription
Clone()Creates a copy of this matrix.
GetElements()Gets the elements of the matrix as an array.
Invert()Inverts this matrix.
Multiply(IMatrix)Multiplies this matrix by another matrix.
Multiply(IMatrix, SvgMatrixOrder)Multiplies this matrix by another matrix in the specified order.
Reset()Resets the matrix to the identity matrix.
Rotate(float)Rotates the matrix by the specified angle.
Rotate(float, SvgMatrixOrder)Rotates the matrix by the specified angle in the specified order.
RotateAt(float, PointF)Rotates the matrix by the specified angle around the specified point.
RotateAt(float, PointF, SvgMatrixOrder)Rotates the matrix by the specified angle around the specified point in the specified order.
Scale(float, float)Scales the matrix by the specified scale factors uniformly.
Scale(float, float, SvgMatrixOrder)Scales the matrix by the specified scale factors in the specified order.
Skew(float, float)Applies a skew transformation to the matrix.
ToNative()Converts the matrix to a native representation.
Transform(RectangleF)Transforms the specified rectangle using this matrix.
TransformPoint(PointF)Transforms the specified point using this matrix.
TransformPoints(PointF[])Transforms an array of points using this matrix.
Translate(float, float)Translates the matrix by the specified offset values.
Translate(float, float, SvgMatrixOrder)Translates the matrix by the specified offset values in the specified order.

See Also