GdThumb::rotateImage PHP 메소드

rotateImage() 공개 메소드

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
 public function rotate($value)
 {
     if (ctype_digit($value)) {
         return parent::rotateImageNDegrees($value);
     } else {
         return parent::rotateImage($value);
     }
 }