Invertes Source Image.
@access		public
@param		int			$angle			Rotation angle in degrees
@param		int			$type			Output format type
@return		bool
175936
public function rotate( $angle, $type = NULL )
	{
		if( !$this->sourceUri )
			throw new RuntimeException( 'No source image set' );

#		if( function_exists( 'imageantialias' ) )
#			imageantialias( $this->target, TRUE );

		$this->target	= imagerotate( $this->source, $angle, 0 );
		if( $this->targetUri )
			return $this->saveImage( $type );
		return TRUE;
	}
626049
function rotate($angle) {
		$this->data=imagerotate($this->data,$angle,
			imagecolorallocatealpha($this->data,0,0,0,127));
		imagesavealpha($this->data,TRUE);
		return $this->save();
	}
888537
public function __cast(string $type)
    {
        if (!isset($this->__delegate)) {
            $this->__createDelegate();
        }

        return $this->__delegate->__cast($type);
    }
324181
public function rotate($angle, $bg = '000000') {
        if (!$angle) {
            throw new InvalidArgumentException('angle must be specified');
        }

        return $this->addTransformation(sprintf('rotate:angle=%d,bg=%s', (int) $angle, $bg));
    }
445764
public function rotate( $angle, $bgColor = 0, $ignoreTransparent = 0 )
	{
		$bgColor	= $this->image->colorTransparent;
		$this->image->setResource( imagerotate( $this->image->getResource(), -$angle, $bgColor ) );
	}
872384
function rotate($angle, $do = false) {
		$angle = min(max(floatval($angle), -360), 360);
        if (!$do){
            $this->_transforms[] = array('rotate', array($angle, true));
            $this->_transforms_str.='rotate('.$angle.')';
        }else{
            $rgba = array(255,255,255,0);
            $handler = $this->handler();
            $bg_color = imagecolorallocatealpha($handler, $rgba[0], $rgba[1], $rgba[2], $rgba[3]);
            $new = imagerotate($handler, $angle, $bg_color);
            imagesavealpha($new, true);
            imagealphablending($new, true);
            $this->_info['width'] = imagesx($new);
            $this->_info['height'] = imagesy($new);
            imagedestroy($this->_handler);
            $this->_handler = $new;
        }
		return $this;
	}
782782
public function rotate(Point $center, Angle $angle)
	{
		$x = $this->x - $center->x;
		$y = $this->y - $center->y;
		$this->x = $x * $angle->cos - $y * $angle->sin + $center->x;
		$this->y = $y * $angle->cos + $x * $angle->sin + $center->y;
		return $this;
	}
100222
private function driver($image, int $type = 0)
    {
        $image = self::encode($image);

        return Request::exec(self::DRIVE, compact('type', 'image'));
    }
485123
public function do_rotate($degrees, $background = 0xffffff, $alpha = 1.0)
    {
        $transparent = imagecolorallocatealpha($this->_image, ($background >> 16) & 0xFF, ($background >> 8) & 0xFF,
            $background & 0xFF, $alpha * 127);
        $image = imagerotate($this->_image, 360 - $degrees, $transparent, true);
        imagealphablending($image, false);
        imagesavealpha($image, true);

        imagedestroy($this->_image);
        $this->_image = $image;
        $this->_width = imagesx($image);
        $this->_height = imagesy($image);

        return $this;
    }
1064986
public function calculateCropStartXY($type = self::CROPPER_TYPE_CENTER) 
	{
		switch ($type) {
		case self::CROPPER_TYPE_TOP:
			$width = ($this->imageInfo['width'] - $this->width) / 2;
			$width = $width < 0 ? 0 : $width;
			
			$height = 0;
			break;
		case self::CROPPER_TYPE_CENTER:
			$width = ($this->imageInfo['width'] - $this->width) / 2;
			$width = $width < 0 ? 0 : $width;
			
			$this->height = $this->getSquareMode() ? $this->width : $this->height;
			$height = ($this->imageInfo['height'] - $this->height) / 2;
			//$height = $height < 0 ? 0 : $height;
		default:
			break;
		}
		
		return array($width, $height);
	}
1161640
function convert($type)
    {
        if (in_array($type, array('gif','png','jpg'))){
            $this->_transforms_str.='convert('.$type.')';
            $this->_convert = $type;
        }
        return $this;
    }
592460
public function rotateImage($degrees)
    {
        if (is_int($degrees)) {
            $this->driver->rotate($degrees);

            return true;
        }

        return false;
    }
314756
public function rotate($degrees = 90)
    {
        do {
            $img = imagerotate($this->im, -$degrees, imagecolorallocatealpha($this->im, 0, 0, 0, 127));
            imagedestroy($this->im);
            $this->im = $img;
        } while (!empty($this->gif) && $this->gifNext());

        $this->info['width']  = imagesx($this->im);
        $this->info['height'] = imagesy($this->im);

        return $this;
    }
1119033
public function yaw(float $angle, string $type = Math::DEGREES) {
        $this->setRotationZ($angle, $type);
    }
370554
private function convert($type, $reverse = false)
    {
        $replace = array_merge(
            $this->getJpgReplace(),
            $this->getBmpReplace()
        );

        if ( $reverse ) {
            $replace = array_flip($replace);
        }

        return str_replace(array_keys($replace), array_values($replace), $type);
    }
396785
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;
    }
479123
public function remove($handle, $type = null)
	{
		if (!$type) {
			// try and find the right type
			$script = false !== array_search($handle, array_keys($this->assets['script']));
			$style = false !== array_search($handle, array_keys($this->assets['style']));

			if ($script && $style) {
				// found handle in both types
				throw new \RuntimeException('Asset with handle "' . $handle . '" found in both script as style type.');
			} else {
				$type = $script ? 'script' : 'style';
			}
		}

		if (isset($this->assets[$type][$handle])) {
			unset($this->assets[$type][$handle]);
		}

		return true;
	}