@@ -92,6 +92,7 @@ discard block |
||
92 | 92 | * </code> |
93 | 93 | * |
94 | 94 | * @result wiPaletteImage or wiTrueColorImage instance |
95 | + * @param string $source |
|
95 | 96 | */ |
96 | 97 | static function load($source, $format = null) |
97 | 98 | { |
@@ -140,6 +141,7 @@ discard block |
||
140 | 141 | * Create and load an image from a string. Format is auto-detected. |
141 | 142 | * |
142 | 143 | * @result wiPaletteImage or wiTrueColorImage instance |
144 | + * @param string $string |
|
143 | 145 | */ |
144 | 146 | static function loadFromString($string) |
145 | 147 | { |
@@ -197,6 +199,7 @@ discard block |
||
197 | 199 | |
198 | 200 | /** |
199 | 201 | * Returns binary string with image data in format specified by $format |
202 | + * @param string $format |
|
200 | 203 | */ |
201 | 204 | function asString($format) |
202 | 205 | { |
@@ -290,6 +293,7 @@ discard block |
||
290 | 293 | |
291 | 294 | /** |
292 | 295 | * @result mixed RGBA array for a color with index $colorIndex |
296 | + * @param integer $colorIndex |
|
293 | 297 | */ |
294 | 298 | function getColorRGB($colorIndex) |
295 | 299 | { |
@@ -306,6 +310,9 @@ discard block |
||
306 | 310 | |
307 | 311 | /** |
308 | 312 | * Set the color index $color to a pixel at $x, $y |
313 | + * @param integer $x |
|
314 | + * @param integer $y |
|
315 | + * @param integer $color |
|
309 | 316 | */ |
310 | 317 | function setColorAt($x, $y, $color) |
311 | 318 | { |
@@ -361,6 +368,8 @@ discard block |
||
361 | 368 | |
362 | 369 | /** |
363 | 370 | * Fill the image at ($x, $y) with color index $color |
371 | + * @param integer $x |
|
372 | + * @param integer $y |
|
364 | 373 | */ |
365 | 374 | function fill($x, $y, $color) |
366 | 375 | { |
@@ -21,6 +21,10 @@ |
||
21 | 21 | |
22 | 22 | class wioResize |
23 | 23 | { |
24 | + |
|
25 | + /** |
|
26 | + * @param wiImage $img |
|
27 | + */ |
|
24 | 28 | protected function prepareDimensions($img, $width, $height, $fit) |
25 | 29 | { |
26 | 30 | if ($width === null) |
@@ -41,11 +41,17 @@ |
||
41 | 41 | return true; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param boolean $mode |
|
46 | + */ |
|
44 | 47 | function alphaBlending($mode) |
45 | 48 | { |
46 | 49 | return imagealphablending($this->handle, $mode); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param boolean $on |
|
54 | + */ |
|
49 | 55 | function saveAlpha($on) |
50 | 56 | { |
51 | 57 | return imagesavealpha($this->handle, $on); |
@@ -56,7 +56,6 @@ discard block |
||
56 | 56 | /** |
57 | 57 | * Méthode appelée pour indiquer qu'un nouveau produit a été crée |
58 | 58 | * |
59 | - * @param object $product Le produit qui vient d'être crée |
|
60 | 59 | * @return void |
61 | 60 | */ |
62 | 61 | public function fireNewProduct($parameters) |
@@ -75,7 +74,6 @@ discard block |
||
75 | 74 | /** |
76 | 75 | * Méthode appelée pour indiquer qu'une nouvelle catégorie a été crée |
77 | 76 | * |
78 | - * @param object $category |
|
79 | 77 | * @return void |
80 | 78 | */ |
81 | 79 | public function fireNewCategory($parameters) |