← All docs

imagerotate()

Implemented by the compiler-injected image prelude.

imagerotate()

function imagerotate(mixed $image, float $angle, int $background_color, int $ignore_transparent = 0): mixed

Implemented by the compiler-injected image prelude.

Parameters:

  • $image (mixed)
  • $angle (float)
  • $background_color (int)
  • $ignore_transparent (int), default 0, optional

Returns: mixed

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 imagerotate is implemented in the compiler, see the internals page.