Class XpsMatrix

Class XpsMatrix

Namespace: Aspose.Page.XPS.XpsModel
Assembly: Aspose.Page.dll (25.1.2)

Class incapsulating MatrixTransform property element features. This element defines an arbitrary affine matrix transformation used to manipulate the coordinate systems of elements.

public sealed class XpsMatrix : XpsObject

Inheritance

objectXpsObjectXpsMatrix

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

IsIdentity

Gets a value indicating whether this instance is identity matrix.

public bool IsIdentity { get; }

Property Value

bool

M11

Gets the M11 element.

public float M11 { get; }

Property Value

float

M12

Gets the M12 element.

public float M12 { get; }

Property Value

float

M21

Gets the M21 element.

public float M21 { get; }

Property Value

float

M22

Gets the M22 element.

public float M22 { get; }

Property Value

float

M31

Gets the M31 element.

public float M31 { get; }

Property Value

float

M32

Gets the M32 element.

public float M32 { get; }

Property Value

float

Methods

Clone()

Clones this transformation matrix.

public XpsMatrix Clone()

Returns

XpsMatrix

Clone of this transformation matrix.

Equals(object)

Determines whether the specified System.Object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The System.Object to compare with this instance.

Returns

bool

true if the specified System.Object is equal to this instance; otherwise, false.

Equals(XpsMatrix, XpsMatrix)

The actual implementation.

public static bool Equals(XpsMatrix a, XpsMatrix b)

Parameters

a XpsMatrix

The first matrix.

b XpsMatrix

The second matrix.

Returns

bool

[true] if martrix are equals

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Multiply(Matrix, MatrixOrder)

Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder.

public void Multiply(Matrix matrix, MatrixOrder matrixOrder)

Parameters

matrix Matrix

The matrix.

matrixOrder MatrixOrder

The order.

Multiply(Matrix)

Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order.

public void Multiply(Matrix matrix)

Parameters

matrix Matrix

The matrix.

Multiply(XpsMatrix, MatrixOrder)

Multiplies this matrix by the matrix specified by the matrix in order specified by matrixOrder.

public void Multiply(XpsMatrix matrix, MatrixOrder matrixOrder)

Parameters

matrix XpsMatrix

The matrix.

matrixOrder MatrixOrder

The order.

Multiply(XpsMatrix)

Multiplies this matrix by the matrix specified by the matrix in default (Prepend) order.

public void Multiply(XpsMatrix matrix)

Parameters

matrix XpsMatrix

The matrix.

Reset()

Resets this Matrix to identity matrix.

public void Reset()

Rotate(float, MatrixOrder)

Applies clockwise rotation by angle to this Matrix in order specified by matrixOrder.

public void Rotate(float angle, MatrixOrder matrixOrder)

Parameters

angle float

The angle.

matrixOrder MatrixOrder

The order.

Rotate(float)

Applies clockwise rotation by angle to this Matrix in default (Prepend) order.

public void Rotate(float angle)

Parameters

angle float

The angle.

RotateAround(float, PointF, MatrixOrder)

Applies clockwise rotation by angle around the pivot to this Matrix in order specified by matrixOrder.

public void RotateAround(float angle, PointF pivot, MatrixOrder matrixOrder)

Parameters

angle float

The angle.

pivot PointF

The pivot point.

matrixOrder MatrixOrder

The order.

RotateAround(float, PointF)

Applies clockwise rotation by angle around the pivot to this Matrix in default (Prepend) order.

public void RotateAround(float angle, PointF pivot)

Parameters

angle float

The angle.

pivot PointF

The pivot point.

Scale(float, float, MatrixOrder)

Applies the specified scale vector (scaleX and scaleY) to this Matrix in order specified by matrixOrder.

public void Scale(float scaleX, float scaleY, MatrixOrder matrixOrder)

Parameters

scaleX float

The scale X.

scaleY float

The scale Y.

matrixOrder MatrixOrder

The order.

Scale(float, float)

Applies the specified scale vector (scaleX and scaleY) to this Matrix in default (Prepend) order.

public void Scale(float scaleX, float scaleY)

Parameters

scaleX float

The scale x.

scaleY float

The scale y.

Skew(double, double)

Applies specified skew transformation to this Matrix.

public void Skew(double skewX, double skewY)

Parameters

skewX double

The skew x.

skewY double

The skew y.

ToString()

Returns the string representation of this Aspose.Page.XPS.XpsModel.XpsMatrix instance.

public override string ToString()

Returns

string

String representation

Transform(RectangleF)

Applies the affine transformation represented by this Matrix to a specified rectangle.

public RectangleF Transform(RectangleF rect)

Parameters

rect RectangleF

The rectangle.

Returns

RectangleF

Transformed rectangle

TransformPoint(PointF)

Applies the affine transformation represented by this Matrix to a specified point.

public PointF TransformPoint(PointF point)

Parameters

point PointF

The point.

Returns

PointF

Transformed point

TransformPoints(PointF[], int, int)

Applies the affine transformation represented by this Matrix to a specified part of array of points.

public void TransformPoints(PointF[] points, int startIndex, int numberOfPoints)

Parameters

points PointF[]

The points.

startIndex int

The start index.

numberOfPoints int

The number of points.

TransformPoints(PointF[])

Applies the affine transformation represented by this Matrix to a specified array of points.

public void TransformPoints(PointF[] points)

Parameters

points PointF[]

The points.

Translate(float, float, MatrixOrder)

Applies the specified translation vector to this Matrix in order specified by matrixOrder.

public void Translate(float offsetX, float offsetY, MatrixOrder matrixOrder)

Parameters

offsetX float

The offset X.

offsetY float

The offset Y.

matrixOrder MatrixOrder

The order.

Translate(float, float)

Applies the specified translation vector to this Matrix.

public void Translate(float offsetX, float offsetY)

Parameters

offsetX float

The offset X.

offsetY float

The offset Y.

Operators

operator ==(XpsMatrix, XpsMatrix)

Implements the operator ==.

public static bool operator ==(XpsMatrix a, XpsMatrix b)

Parameters

a XpsMatrix

The first matrix.

b XpsMatrix

The second matrix.

Returns

bool

The result of the operator.

operator !=(XpsMatrix, XpsMatrix)

Implements the operator !=.

public static bool operator !=(XpsMatrix a, XpsMatrix b)

Parameters

a XpsMatrix

The first matrix.

b XpsMatrix

The second matrix.

Returns

bool

The result of the operator.

 English