@@ -89,7 +89,7 @@ |
||
89 | 89 | * @param string $paletteName |
90 | 90 | * @param string $paletteType |
91 | 91 | * @param string $palettesFile |
92 | - * @return bool|ColorGeneratorInterface |
|
92 | + * @return ColorGeneratorInterface |
|
93 | 93 | * @throws \InvalidArgumentException |
94 | 94 | */ |
95 | 95 | public function getColorGenerator($paletteName, $paletteType, $palettesFile = null) |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return new self($this->getX() + $deltaX, $this->getY() + $deltaY, $this->getWidth(), $this->getHeight()); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param integer $count |
|
94 | + */ |
|
92 | 95 | public function resize($count) |
93 | 96 | { |
94 | 97 | return new self( |
@@ -74,6 +74,12 @@ |
||
74 | 74 | return false; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string $word |
|
79 | + * @param string $font |
|
80 | + * @param integer $size |
|
81 | + * @param integer $angle |
|
82 | + */ |
|
77 | 83 | public function addWordToMask($word, Box $place, $font, $size, $angle) |
78 | 84 | { |
79 | 85 | $base = $this->metrics->calculateSize($word, $font, $size, $angle); |