image_rotate
- Versions
- 4.6 – 5
image_rotate($source, $destination, $degrees)- 6
image_rotate($source,$destination, $degrees, $background = 0x000000)- 7
image_rotate(stdClass $image, $degrees, $background = NULL)
Rotate an image by the given number of degrees.
Parameters
$source The filepath of the source image
$destination The file path of the destination image
$degrees The number of (clockwise) degrees to rotate the image
Code
includes/image.inc, line 151
<?php
function image_rotate($source, $destination, $degrees) {
return image_toolkit_invoke('rotate', array($source, $destination, $degrees));
}
?>Login or register to post comments 