1 | <?php |
||
15 | class Resize extends IMethod |
||
16 | { |
||
17 | protected $_width; |
||
18 | protected $_height; |
||
19 | protected $_preserveAspectRatio = true; |
||
20 | |||
21 | /** |
||
22 | * Set the width |
||
23 | * |
||
24 | * @param int $width |
||
25 | * @return self |
||
26 | */ |
||
27 | public function SetWidth($width) |
||
32 | |||
33 | /** |
||
34 | * Set the height |
||
35 | * |
||
36 | * @param int $height |
||
37 | * @return self |
||
38 | */ |
||
39 | public function SetHeight($height) |
||
44 | |||
45 | /** |
||
46 | * Sets wheter or not the aspect ratio of the original |
||
47 | * image needs to preserved |
||
48 | * |
||
49 | * @param bool $bool |
||
50 | * @return self |
||
51 | */ |
||
52 | public function SetPreserveAspectRatio($bool) |
||
57 | |||
58 | public function Execute($imageResource) |
||
84 | } |
||
85 | } |