Resets the current transformation matrix of the current context back to its default and then multiplies it by the specified matrix.
![]() |
Syntax
CanvasRenderingContext2D.setTransform(m11, m12, m21, m22, dx, dy);Parameters
- m11 [in]
-
Type: Floating-point
The m1,1 value in the matrix.
- m12 [in]
-
Type: Floating-point
The m1,2 value in the matrix.
- m21 [in]
-
Type: Floating-point
The m2,1 value in the matrix.
- m22 [in]
-
Type: Floating-point
The m2,2 value in the matrix.
- dx [in]
-
Type: Floating-point
The delta x (dx) value in the matrix.
- dy [in]
-
Type: Floating-point
The delta y (dy) value in the matrix.
Return value
This method does not return a value.
Standards information
- HTML Canvas 2D Context, Section 3
Remarks
The transformation matrix of the current context is reset back to the identity matrix. After it is reset, the transformation matrix of the context is multipled by the matrix that the specified parameters form.
.jpg)
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012
.png)
.png)