transform method
Modifies the transformation matrix of the current context.
Syntax
object.transform(m11, m12, m21, m22, dx, dy);
Parameters
m11 [in]
Type: numberThe m1,1 value in the matrix.
m12 [in]
Type: numberThe m1,2 value in the matrix.
m21 [in]
Type: numberThe m2,1 value in the matrix.
m22 [in]
Type: numberThe m2,2 value in the matrix.
dx [in]
Type: numberThe delta x (dx) value in the matrix.
dy [in]
Type: numberThe 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 parameters of ICanvasRenderingContext2D::transform represent a matrix of the following format.
This matrix is multiplied with the transformation matrix of the current context.