function image_imagick_rotate_process in Imagick 7
Parameters
$res:
$degrees:
$background:
Return value
bool
1 string reference to 'image_imagick_rotate_process'
- image_imagick_rotate in effects/
imagick.rotate.inc - Rotate an image the given number of degrees.
File
- effects/
imagick.rotate.inc, line 38
Code
function image_imagick_rotate_process($res, $degrees, $background = NULL) {
$color = empty($background) ? 'none' : $background;
$success = $res
->rotateImage(new ImagickPixel($color), $degrees);
$res
->setImagePage($res
->getImageWidth(), $res
->getImageHeight(), 0, 0);
return $success;
}