Table of Contents

Struct XMatrix

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Represents a 3-by-3 matrix that represents an affine 2D transformation.

[Serializable]
public struct XMatrix

Constructors

XMatrix(double, double, double, double, double, double)

Initializes a new instance of the XMatrix struct.

Properties

Determinant

Gets the determinant of this matrix.

HasInverse

Gets a value that indicates whether this matrix is invertible.

Identity

Gets the identity matrix.

IsIdentity

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

M11

Gets or sets the value of the first row and first column of this matrix.

M12

Gets or sets the value of the first row and second column of this matrix.

M21

Gets or sets the value of the second row and first column of this matrix.

M22

Gets or sets the value of the second row and second column of this matrix.

OffsetX

Gets or sets the value of the third row and first column of this matrix.

OffsetY

Gets or sets the value of the third row and second column of this matrix.

Methods

Append(XMatrix)

Appends the specified matrix to this matrix.

Equals(XMatrix)

Determines whether this matrix is equal to the specified matrix.

Equals(XMatrix, XMatrix)

Determines whether the two matrices are equal.

Equals(object?)

Determines whether this matrix is equal to the specified object.

GetElements()

Gets an array of double values that represents the elements of this matrix.

GetHashCode()

Returns the hash code for this instance.

Invert()

Inverts the matrix.

Multiply(XMatrix)

Appends the specified matrix to this matrix.

Multiply(XMatrix, XMatrix)

Multiplies two matrices.

Multiply(XMatrix, XMatrixOrder)

Multiplies this matrix with the specified matrix.

MultiplyPrepend(XMatrix)

Prepends the specified matrix to this matrix.

Parse(string)

Parses a matrix from a string.

Prepend(XMatrix)

Prepends the specified matrix to this matrix.

Rotate(double)

Function is obsolete.

Rotate(double, XMatrixOrder)

Rotates the matrix with the specified angle.

RotateAppend(double)

Appends a rotation of the specified angle to this matrix.

RotateAt(double, XPoint)

Rotates the matrix with the specified angle at the specified point.

RotateAt(double, XPoint, XMatrixOrder)

Rotates the matrix with the specified angle at the specified point.

RotateAt(double, double, double)

Function is obsolete.

RotateAtAppend(double, XPoint)

Appends a rotation of the specified angle at the specified point to this matrix.

RotateAtAppend(double, double, double)

Appends a rotation of the specified angle at the specified point to this matrix.

RotateAtPrepend(double, XPoint)

Prepends a rotation of the specified angle at the specified point to this matrix.

RotateAtPrepend(double, double, double)

Prepends a rotation of the specified angle at the specified point to this matrix.

RotatePrepend(double)

Prepends a rotation of the specified angle to this matrix.

Scale(double)

Scales the matrix with the specified scalar.

Scale(double, XMatrixOrder)

Scales the matrix with the specified scalar.

Scale(double, double)

Appends the specified scale vector to this matrix.

Scale(double, double, XMatrixOrder)

Scales the matrix with the specified scalars.

ScaleAppend(double)

Appends the specified scale vector to this matrix.

ScaleAppend(double, double)

Appends the specified scale vector to this matrix.

ScaleAt(double, double, double, double)

Function is obsolete.

ScaleAtAppend(double, double, double, double)

Appends the specified scale about the specified point of this matrix.

ScaleAtPrepend(double, double, double, double)

Prepends the specified scale about the specified point of this matrix.

ScalePrepend(double)

Prepends the specified scale vector to this matrix.

ScalePrepend(double, double)

Prepends the specified scale vector to this matrix.

SetIdentity()

Sets this matrix into an identity matrix.

Shear(double, double)

Function is obsolete.

Shear(double, double, XMatrixOrder)

Shears the matrix with the specified scalars.

ShearAppend(double, double)

Appends a skew of the specified degrees in the x and y dimensions to this matrix.

ShearPrepend(double, double)

Prepends a skew of the specified degrees in the x and y dimensions to this matrix.

Skew(double, double)

Function is obsolete.

SkewAppend(double, double)

Appends a skew of the specified degrees in the x and y dimensions to this matrix.

SkewPrepend(double, double)

Prepends a skew of the specified degrees in the x and y dimensions to this matrix.

ToString()

Converts this XMatrix to a human-readable string.

ToString(IFormatProvider)

Converts this XMatrix to a human-readable string.

Transform(XPoint)

Transforms the specified point by this matrix and returns the result.

Transform(XPoint[])

Transforms the specified points by this matrix.

Transform(XVector)

Transforms the specified vector by this Matrix and returns the result.

Transform(XVector[])

Transforms the specified vectors by this matrix.

TransformPoints(XPoint[])

Multiplies all points of the specified array with this matrix.

Translate(double, double)

Appends a translation of the specified offsets to this matrix.

Translate(double, double, XMatrixOrder)

Translates the matrix with the specified offsets.

TranslateAppend(double, double)

Appends a translation of the specified offsets to this matrix.

TranslatePrepend(double, double)

Prepends a translation of the specified offsets to this matrix.

Operators

operator ==(XMatrix, XMatrix)

Determines whether the two matrices are equal.

operator !=(XMatrix, XMatrix)

Determines whether the two matrices are not equal.

operator *(XMatrix, XMatrix)

Multiplies two matrices.