image_rotate

Definition

image_rotate($source, $destination, $degrees)
includes/image.inc, line 164

Description

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

<?php
function image_rotate($source, $destination, $degrees) {
  return image_toolkit_invoke('rotate', array($source, $destination, $degrees));
}
?>
 
 

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.