CImage.php
public function rotate($angle, $bgColor)
    {
        $this->log("Rotate image " . $angle . " degrees with filler color.");

        $color = $this->getBackgroundColor();
        $this->image = imagerotate($this->image, $angle, $color);

        $this->width  = imagesx($this->image);
        $this->height = imagesy($this->image);

        $this->log("New image dimension width x height: " . $this->width . " x " . $this->height);

        return $this;
    }
public function rotate($angle, $bgColor)
    {
        $this->log("Rotate image " . $angle . " degrees with filler color.");

        $color = $this->getBackgroundColor();
        $this->image = imagerotate($this->image, $angle, $color);

        $this->width  = imagesx($this->image);
        $this->height = imagesy($this->image);

        $this->log("New image dimension width x height: " . $this->width . " x " . $this->height);

        return $this;
    }
public function rotate ( $ angle , $ bgColor ) { $ this -> log ( "Rotate image " . $ angle . " degrees with filler color." ) ; $ color = $ this -> getBackgroundColor ( ) ; $ this -> image = imagerotate ( $ this -> image , $ angle , $ color ) ; $ this -> width = imagesx ( $ this -> image ) ; $ this -> height = imagesy ( $ this -> image ) ; $ this -> log ( "New image dimension width x height: " . $ this -> width . " x " . $ this -> height ) ; return $ this ; }
Rotate image using angle.

@param float $angle        to rotate image.
@param int   $anglebgColor to fill image with if needed.

@return $this
Rotate image using angle .