You are here

function image_rotate in Drupal 5

Same name and namespace in other branches
  1. 4 includes/image.inc \image_rotate()
  2. 6 includes/image.inc \image_rotate()
  3. 7 includes/image.inc \image_rotate()

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:

File

includes/image.inc, line 155

Code

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