GdThumb::rotateImage PHP Method

rotateImage() public method

Rotates image either 90 degrees clockwise or counter-clockwise
public rotateImage ( string $direction = 'CW' )
$direction string
    public function rotateImage($direction = 'CW')
    {
        if ($direction == 'CW') {
            $this->rotateImageNDegrees(90);
        } else {
            $this->rotateImageNDegrees(-90);
        }
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: Image.php プロジェクト: nicolasmartin/framework
 public function rotate($value)
 {
     if (ctype_digit($value)) {
         return parent::rotateImageNDegrees($value);
     } else {
         return parent::rotateImage($value);
     }
 }