matrix property
Gets the matrix that represents this transformation.
![]() ![]() |
Syntax
HRESULT value = object.get_matrix(ISVGMatrix** p);
Property values
Type: Object
The matrix that represents this transformation.
Standards information
Remarks
The matrix object is live (that is, any changes to the SVGTransform object are immediately reflected in the matrix object and vice versa). If you change the matrix object directly (that is, without using the SVGTransform methods), the SVGTransform type changes to SVG_TRANSFORM_MATRIX.
The values in the returned matrix changes based on the type of matrix:
- For a SVG_TRANSFORM_MATRIX matrix, the matrix contains the ISVGMatrix::a, ISVGMatrix::b, ISVGMatrix::c, ISVGMatrix::d, ISVGMatrix::e, and ISVGMatrix::f values that the user supplies.
- For a SVG_TRANSFORM_TRANSLATE matrix, the ISVGMatrix::e and ISVGMatrix::f values represent the translation amounts (ISVGMatrix::a=1, ISVGMatrix::b=0, ISVGMatrix::c=0, and ISVGMatrix::d=1).
- For a SVG_TRANSFORM_SCALE matrix, the ISVGMatrix::a and ISVGMatrix::d values represent the translation amounts (ISVGMatrix::b=0, ISVGMatrix::c=0, ISVGMatrix::e=0, and ISVGMatrix::f=0).
- For a SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SKEWX, or SVG_TRANSFORM_SKEWY matrix, the ISVGMatrix::a, ISVGMatrix::b, ISVGMatrix::c, and ISVGMatrix::d values represent the matrix that causes the given transformation (ISVGMatrix::e=0 and ISVGMatrix::f=0).
Show:

