← All docs

cairo_identity_matrix()

Resets the context's transformation to the identity matrix.

cairo_identity_matrix()

function cairo_identity_matrix(mixed $context): void

Resets the context’s transformation to the identity matrix.

Parameters:

  • $context (mixed)

Returns: void

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how cairo_identity_matrix is implemented in the compiler, see the internals page.