Contents

setTransform

Sets the transformation matrix.

Declaration

void setTransform(
    unrestricted float m11, 
    unrestricted float m12, 
    unrestricted float m21, 
    unrestricted float m22, 
    unrestricted float dx, 
    unrestricted float dy
);

Parameters

  • m11:

    Column 1 row 1 matrix value (a).

  • m12:

    Column 1 row 2 matrix value (b).

  • m21:

    Column 2 row 1 matrix value (c).

  • m22:

    Column 2 row 2 matrix value (d).

  • dx:

    X scalar value (e).

  • dy:

    Y scalar value (f).

Discussion

Replaces the current transformation matrix with the matrix shown in Figure 1. Each point in the canvas coordinate system is multiplied by the transformation matrix.

[Image]

See Also

Changing the Coordinate System