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 155

<?php
function image_rotate($source, $destination, $degrees) {
  return image_toolkit_invoke('rotate', array($source, $destination, $degrees));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.