setMatrix method
Sets the transform type to SVG_TRANSFORM_MATRIX by using the specified new transformation.
![]() ![]() |
Syntax
var retval = SVGTransform.setMatrix(matrix);Parameters
- matrix [in]
-
Type: ISVGMatrix
A matrix that defines the new transformation.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
|
IE9 mode only. An attempt is made to modify an object that cannot be changed. |
Exceptions
| Exception | Condition |
|---|---|
|
An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned. |
Standards information
Remarks
The setMatrix method can raise a DOMException exception with the code NO_MODIFICATION_ALLOWED_ERR. This exception is raised if you try to change the value of a read-only attribute.
The values from the matrix parameter are copied, but the matrix parameter does not replace the matrix value.
See also

