function image_rotate in Drupal 6
Same name and namespace in other branches
- 4 includes/image.inc \image_rotate()
- 5 includes/image.inc \image_rotate()
- 7 includes/image.inc \image_rotate()
Rotate an image by the given number of degrees.
Parameters
$source: The file path of the source image.
$destination: The file path of the destination image.
$degrees: The number of (clockwise) degrees to rotate the image.
$background: An hexidecimal integer specifying the background color to use for the uncovered area of the image after the rotation. E.g. 0x000000 for black, 0xff00ff for magenta, and 0xffffff for white.
Return value
TRUE or FALSE, based on success.
Related topics
File
- includes/
image.inc, line 243 - API for manipulating images.
Code
function image_rotate($source, $destination, $degrees, $background = 0x0) {
return image_toolkit_invoke('rotate', array(
$source,
$destination,
$degrees,
$background,
));
}