[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Matrix

Matrix Class

Represents a 3x2 coordinate system transformation matrix with double precision.

Inheritance
Matrix
Implements
Namespace: GrapeCity.Documents.Common
Assembly: DS.Documents.Imaging.dll
Syntax
public class Matrix : IEquatable<Matrix>
Public Class Matrix
    Implements IEquatable(Of Matrix)

Constructors

Name Description
Matrix(double, double, double, double, double, double)

Initializes a new instance of the Matrix class.

Matrix(Matrix3x2)

Initializes a new instance of the Matrix class from Matrix3x2.

Fields

Name Description
Identity

Gets the identity matrix.

Properties

Name Description
IsIdentity

Gets a value indicating whether this instance is an identity matrix.

M11

Gets element (1, 1).

M12

Gets element (1, 2).

M21

Gets element (2, 1).

M22

Gets element (2, 2).

M31

Gets element (3, 1).

M32

Gets element (3, 2).

Methods

Name Description
CreateRotation(double)

Creates a rotation matrix.

CreateRotation(double, double, double)

Creates a rotation matrix.

CreateRotation(double, PointF)

Creates a rotation matrix.

CreateScale(double)

Creates a scaling matrix that scales uniformly with the given scale.

CreateScale(double, double)

Creates a scaling matrix from the specified X and Y components.

CreateScale(double, double, double)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

CreateScale(double, double, double, double)

Creates a scaling matrix that is offset by a given center point.

CreateScale(double, double, PointF)

Creates a scaling matrix that is offset by a given center point.

CreateScale(double, PointF)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

CreateSkew(double, double)

Creates a skew matrix from the specified angles in radians.

CreateSkew(double, double, double, double)

Creates a skew matrix from the specified angles in radians and a center point.

CreateSkew(double, double, PointF)

Creates a skew matrix from the specified angles in radians and a center point.

CreateTranslation(double, double)

Creates a translation matrix.

CreateTranslation(PointF)

Creates a translation matrix.

Equals(Matrix)

Determines whether the specified Matrix is equal to this instance.

Equals(object)

Determines whether the specified object is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

Invert()

Inverts the matrix if possible. Returns the inverted matrix if the operation succeeded.

Invert(out Matrix)

Inverts the matrix if possible. The return value indicates whether the operation succeeded.

Multiply(Matrix)

Determines the product of two matrices.

Multiply(Matrix3x2)

Determines the product of the current Matrix to Matrix3x2.

Rotate(double)

Applies the rotation transformation.

Rotate(double, double, double)

Applies the rotation transformation.

Rotate(double, PointF)

Applies the rotation transformation.

Scale(double)

Applies the scaling transformation.

Scale(double, double)

Applies the scaling transformation.

Scale(double, double, double, double)

Applies the scaling transformation that is offset by a given center point.

Scale(double, double, PointF)

Applies the scaling transformation that is offset by a given center point.

Skew(double, double)

Applies the skew transformation.

Skew(double, double, double, double)

Applies the skew transformation that is offset by a given center point.

Skew(double, double, PointF)

Applies the skew transformation that is offset by a given center point.

SkewX(double)

Applies the skew transformation along the X axis.

SkewY(double)

Applies the skew transformation along the Y axis.

ToMatrix3x2()

Creates a Matrix3x2 from this Matrix.

ToString()

Returns a string that represents the current Matrix.

ToString(IFormatProvider)

Returns a string that represents this instance.

Transform(double, double)

Transforms a point by this matrix.

Transform(PointF)

Transforms a point by this matrix.

Transform(PointF[], int, int)

Transforms an array of points by this matrix.

Transform(float, float)

Transforms a point by this matrix.

Translate(double, double)

Applies the translation transformation.

Translate(PointF)

Applies the translation transformation.

Operators

Name Description
operator ==(Matrix, Matrix)

Returns a value that indicates whether the specified matrices are equal.

operator !=(Matrix, Matrix)

Returns a value that indicates whether the specified matrices are not equal.

operator *(Matrix, Matrix)

Determines the product of two matrices.

operator *(Matrix, Matrix3x2)

Determines the product of the Matrix to Matrix3x2.