| @@ 58-67 (lines=10) @@ | ||
| 55 | return $this->image->paste($image->getImage(), new Point($x, $y)); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function getWidth() |
|
| 59 | { |
|
| 60 | if (is_null($this->image)) { |
|
| 61 | throw new \Exception('No image created / loaded'); |
|
| 62 | } |
|
| 63 | ||
| 64 | $size = $this->image->getSize(); |
|
| 65 | ||
| 66 | return $size->getWidth(); |
|
| 67 | } |
|
| 68 | ||
| 69 | public function getHeight() |
|
| 70 | { |
|
| @@ 69-78 (lines=10) @@ | ||
| 66 | return $size->getWidth(); |
|
| 67 | } |
|
| 68 | ||
| 69 | public function getHeight() |
|
| 70 | { |
|
| 71 | if (is_null($this->image)) { |
|
| 72 | throw new \Exception('No image created / loaded'); |
|
| 73 | } |
|
| 74 | ||
| 75 | $size = $this->image->getSize(); |
|
| 76 | ||
| 77 | return $size->getHeight(); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||