Class SVGMatrix

Class SVGMatrix

Namespace: Aspose.Html.Dom.Svg.DataTypes
Assembly: Aspose.HTML.dll (25.4.0)

Many of SVG’s graphics operations utilize 2x3 matrices of the form: [a c e] [b d f] which, when expanded into a 3x3 matrix for the purposes of matrix arithmetic, become: [a c e] [b d f] [0 0 1]

[ComVisible(true)]
[DOMObject]
[DOMName("SVGMatrix")]
public class SVGMatrix : SVGValueType, INotifyPropertyChanged, IDisposable

Inheritance

objectDOMObjectSVGValueTypeSVGMatrix

Implements

INotifyPropertyChanged, IDisposable

Inherited Members

SVGValueType.Dispose(), SVGValueType.Dispose(bool), DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

A

The A component of the matrix.

[DOMName("a")]
public float A { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

B

The B component of the matrix.

[DOMName("b")]
public float B { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

C

The C component of the matrix.

[DOMName("c")]
public float C { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

D

The D component of the matrix.

[DOMName("d")]
public float D { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

E

The E component of the matrix.

[DOMName("e")]
public float E { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

F

The F component of the matrix.

[DOMName("f")]
public float F { get; set; }

Property Value

float

Exceptions

DOMException

Code Aspose.Html.Dom.DOMException.NO_MODIFICATION_ALLOWED_ERR. Raised on an attempt to change the value of a read only attribute.

Methods

Multiply(SVGMatrix)

Performs matrix multiplication. This matrix is post-multiplied by another matrix, returning the resulting new matrix.

[DOMName("multiply")]
public SVGMatrix Multiply(SVGMatrix secondMatrix)

Parameters

secondMatrix SVGMatrix

The matrix which is post-multiplied to this matrix.

Returns

SVGMatrix

The resulting matrix.

Rotate(float)

Post-multiplies a rotation transformation on the current matrix and returns the resulting matrix.

[DOMName("rotate")]
public SVGMatrix Rotate(float angle)

Parameters

angle float

Rotation angle.

Returns

SVGMatrix

The resulting matrix.

Scale(float)

Post-multiplies a uniform scale transformation on the current matrix and returns the resulting matrix.

[DOMName("scale")]
public SVGMatrix Scale(float scaleFactor)

Parameters

scaleFactor float

Scale factor in both X and Y.

Returns

SVGMatrix

The resulting matrix.

ScaleNonUniform(float, float)

Post-multiplies a non-uniform scale transformation on the current matrix and returns the resulting matrix.

[DOMName("scaleNonUniform")]
public SVGMatrix ScaleNonUniform(float scaleFactorX, float scaleFactorY)

Parameters

scaleFactorX float

Scale factor in X.

scaleFactorY float

Scale factor in Y.

Returns

SVGMatrix

The resulting matrix.

SkewX(float)

Post-multiplies a skewX transformation on the current matrix and returns the resulting matrix.

[DOMName("skewX")]
public SVGMatrix SkewX(float angle)

Parameters

angle float

Skew angle.

Returns

SVGMatrix

The resulting matrix.

SkewY(float)

Post-multiplies a skewY transformation on the current matrix and returns the resulting matrix.

[DOMName("skewY")]
public SVGMatrix SkewY(float angle)

Parameters

angle float

The angle.

Returns

SVGMatrix

Skew angle.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

string

A System.String that represents this instance.

Translate(float, float)

Post-multiplies a translation transformation on the current matrix and returns the resulting matrix.

[DOMName("translate")]
public SVGMatrix Translate(float x, float y)

Parameters

x float

The distance to translate along the x-axis.

y float

The distance to translate along the y-axis.

Returns

SVGMatrix

The resulting matrix.