Horde_Image_Imagick::rotate PHP Method

rotate() public method

Rotates the current image.
public rotate ( integer $angle, string $background = 'white' )
$angle integer The angle to rotate the image by, in the clockwise direction.
$background string The background color to fill any triangles.
    public function rotate($angle, $background = 'white')
    {
        try {
            $this->_imagick->rotateImage($background, $angle);
        } catch (ImagickException $e) {
            throw new Horde_Image_Exception($e);
        }
        $this->clearGeometry();
    }