Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
plugins
intervention-image
Intervention
Image
Imagick
Commands
RotateCommand.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Imagick\Commands
;
4
5
use \Intervention\Image\Imagick\Color;
6
7
class
RotateCommand
extends
\Intervention\Image\Commands\AbstractCommand
8
{
15
public
function
execute
($image)
16
{
17
$angle = $this->
argument
(0)->type(
'numeric'
)->required()->value();
18
$color = $this->
argument
(1)->value();
19
$color =
new
Color
($color);
20
21
// rotate image
22
$image->getCore()->rotateImage($color->getPixel(), ($angle * -1));
23
24
return
true
;
25
}
26
}
Intervention\Image\Imagick\Color
Definition:
Color.php:6
php
Intervention\Image\Imagick\Commands
Definition:
BackupCommand.php:3
Intervention\Image\Imagick\Commands\RotateCommand\execute
execute($image)
Definition:
RotateCommand.php:15
Intervention\Image\Commands\AbstractCommand\argument
argument($key)
Definition:
AbstractCommand.php:45
Intervention\Image\Commands\AbstractCommand
Definition:
AbstractCommand.php:6
Intervention\Image\Imagick\Commands\RotateCommand
Definition:
RotateCommand.php:8
Generated by
1.8.20