Interface IMatrix

Interface IMatrix

Namespace: Aspose.Html.Drawing
Assembly: Aspose.HTML.dll (25.2.0)

Represents a matrix used for transformations.

[ComVisible(true)]
public interface IMatrix

Properties

IsIdentity

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

bool IsIdentity { get; }

Property Value

bool

IsInvertible

Gets a value indicating whether this matrix is invertible.

bool IsInvertible { get; }

Property Value

bool

M11

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

float M11 { get; set; }

Property Value

float

M12

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

float M12 { get; set; }

Property Value

float

M21

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

float M21 { get; set; }

Property Value

float

M22

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

float M22 { get; set; }

Property Value

float

M31

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

float M31 { get; set; }

Property Value

float

M32

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

float M32 { get; set; }

Property Value

float

Methods

Clone()

Creates a copy of this matrix.

IMatrix Clone()

Returns

IMatrix

A new instance of Aspose.Html.Drawing.IMatrix that is a copy of this matrix.

GetElements()

Gets the elements of the matrix as an array.

float[] GetElements()

Returns

float[]

The elements of the matrix.

Invert()

Inverts this matrix.

void Invert()

Multiply(IMatrix, WebMatrixOrder)

Multiplies this matrix by another matrix in the specified order.

void Multiply(IMatrix matrix, WebMatrixOrder order)

Parameters

matrix IMatrix

The matrix to multiply by.

order WebMatrixOrder

The order in which multiplication is applied.

Multiply(IMatrix)

Multiplies this matrix by another matrix.

void Multiply(IMatrix matrix)

Parameters

matrix IMatrix

The matrix to multiply by.

Reset()

Resets the matrix to the identity matrix.

void Reset()

Rotate(float, WebMatrixOrder)

Rotates the matrix by the specified angle in the specified order.

void Rotate(float angle, WebMatrixOrder order)

Parameters

angle float

The angle of rotation in degrees.

order WebMatrixOrder

The order in which rotation is applied.

Rotate(float)

Rotates the matrix by the specified angle.

void Rotate(float angle)

Parameters

angle float

The angle of rotation in degrees.

RotateAt(float, PointF, WebMatrixOrder)

Rotates the matrix by the specified angle around the specified point in the specified order.

void RotateAt(float angle, PointF point, WebMatrixOrder order)

Parameters

angle float

The angle of rotation in degrees.

point PointF

The point to rotate around.

order WebMatrixOrder

The order in which rotation is applied.

RotateAt(float, PointF)

Rotates the matrix by the specified angle around the specified point.

void RotateAt(float angle, PointF point)

Parameters

angle float

The angle of rotation in degrees.

point PointF

The point to rotate around.

Scale(float, float, WebMatrixOrder)

Scales the matrix by the specified scale factors in the specified order.

void Scale(float scaleX, float scaleY, WebMatrixOrder order)

Parameters

scaleX float

The scale factor along the x-axis.

scaleY float

The scale factor along the y-axis.

order WebMatrixOrder

The order in which scaling is applied.

Scale(float, float)

Scales the matrix by the specified scale factors uniformly.

void Scale(float scaleX, float scaleY)

Parameters

scaleX float

The uniform scale factor.

scaleY float

The uniform scale factor.

Skew(float, float)

Applies a skew transformation to the matrix.

void Skew(float skewX, float skewY)

Parameters

skewX float

The angle by which to skew in the x-axis direction.

skewY float

The angle by which to skew in the y-axis direction.

TransformPoint(PointF)

Transforms the specified point using this matrix.

PointF TransformPoint(PointF point)

Parameters

point PointF

The point to transform.

Returns

PointF

The transformed point.

TransformPoints(PointF[])

Transforms an array of points using this matrix.

void TransformPoints(PointF[] points)

Parameters

points PointF[]

The array of points to transform.

TransformRectangle(RectangleF)

Transforms the specified rectangle using this matrix.

RectangleF TransformRectangle(RectangleF rect)

Parameters

rect RectangleF

The rectangle to transform.

Returns

RectangleF

The transformed rectangle.

Translate(float, float, WebMatrixOrder)

Translates the matrix by the specified offset values in the specified order.

void Translate(float offsetX, float offsetY, WebMatrixOrder order)

Parameters

offsetX float

The offset value along the x-axis.

offsetY float

The offset value along the y-axis.

order WebMatrixOrder

The order in which translation is applied.

Translate(float, float)

Translates the matrix by the specified offset values.

void Translate(float offsetX, float offsetY)

Parameters

offsetX float

The offset value along the x-axis.

offsetY float

The offset value along the y-axis.