Skip to content

Commit b7be9b7

Browse files
committed
Image: update phpDoc
1 parent 2790367 commit b7be9b7

File tree

1 file changed

+46
-52
lines changed

1 file changed

+46
-52
lines changed

src/Utils/Image.php

Lines changed: 46 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -22,74 +22,68 @@
2222
* $image->send();
2323
* </code>
2424
*
25-
* @method Image affine(array $affine, array $clip = null)
26-
* @method array affineMatrixConcat(array $m1, array $m2)
27-
* @method array affineMatrixGet(int $type, mixed $options = null)
28-
* @method void alphaBlending(bool $on)
29-
* @method void antialias(bool $on)
30-
* @method void arc($x, $y, $w, $h, $start, $end, ImageColor $color)
31-
* @method void char(int $font, $x, $y, string $char, ImageColor $color)
32-
* @method void charUp(int $font, $x, $y, string $char, ImageColor $color)
33-
* @method int colorAllocate($red, $green, $blue)
34-
* @method int colorAllocateAlpha($red, $green, $blue, $alpha)
35-
* @method int colorAt($x, $y)
36-
* @method int colorClosest($red, $green, $blue)
37-
* @method int colorClosestAlpha($red, $green, $blue, $alpha)
38-
* @method int colorClosestHWB($red, $green, $blue)
39-
* @method void colorDeallocate($color)
40-
* @method int colorExact($red, $green, $blue)
41-
* @method int colorExactAlpha($red, $green, $blue, $alpha)
25+
* @method Image affine(array $affine, ?array $clip = null)
26+
* @method void alphaBlending(bool $enable)
27+
* @method void antialias(bool $enable)
28+
* @method void arc(int $centerX, int $centerY, int $width, int $height, int $startAngle, int $endAngle, ImageColor $color)
29+
* @method int colorAllocate(int $red, int $green, int $blue)
30+
* @method int colorAllocateAlpha(int $red, int $green, int $blue, int $alpha)
31+
* @method int colorAt(int $x, int $y)
32+
* @method int colorClosest(int $red, int $green, int $blue)
33+
* @method int colorClosestAlpha(int $red, int $green, int $blue, int $alpha)
34+
* @method int colorClosestHWB(int $red, int $green, int $blue)
35+
* @method void colorDeallocate(int $color)
36+
* @method int colorExact(int $red, int $green, int $blue)
37+
* @method int colorExactAlpha(int $red, int $green, int $blue, int $alpha)
4238
* @method void colorMatch(Image $image2)
43-
* @method int colorResolve($red, $green, $blue)
44-
* @method int colorResolveAlpha($red, $green, $blue, $alpha)
45-
* @method void colorSet($index, $red, $green, $blue)
46-
* @method array colorsForIndex($index)
39+
* @method int colorResolve(int $red, int $green, int $blue)
40+
* @method int colorResolveAlpha(int $red, int $green, int $blue, int $alpha)
41+
* @method void colorSet(int $index, int $red, int $green, int $blue, int $alpha = 0)
42+
* @method array colorsForIndex(int $color)
4743
* @method int colorsTotal()
48-
* @method int colorTransparent($color = null)
44+
* @method int colorTransparent(?int $color = null)
4945
* @method void convolution(array $matrix, float $div, float $offset)
50-
* @method void copy(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH)
51-
* @method void copyMerge(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
52-
* @method void copyMergeGray(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
53-
* @method void copyResampled(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
54-
* @method void copyResized(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
55-
* @method Image cropAuto(int $mode = -1, float $threshold = .5, ?ImageColor $color = null)
56-
* @method void ellipse($cx, $cy, $w, $h, ImageColor $color)
57-
* @method void fill($x, $y, ImageColor $color)
58-
* @method void filledArc($cx, $cy, $w, $h, $s, $e, ImageColor $color, $style)
59-
* @method void filledEllipse($cx, $cy, $w, $h, ImageColor $color)
60-
* @method void filledPolygon(array $points, $numPoints, ImageColor $color)
61-
* @method void filledRectangle($x1, $y1, $x2, $y2, ImageColor $color)
62-
* @method void fillToBorder($x, $y, $border, ImageColor $color)
63-
* @method void filter($filtertype)
46+
* @method void copy(Image $src, int $dstX, int $dstY, int $srcX, int $srcY, int $srcW, int $srcH)
47+
* @method void copyMerge(Image $src, int $dstX, int $dstY, int $srcX, int $srcY, int $srcW, int $srcH, int $pct)
48+
* @method void copyMergeGray(Image $src, int $dstX, int $dstY, int $srcX, int $srcY, int $srcW, int $srcH, int $pct)
49+
* @method void copyResampled(Image $src, int $dstX, int $dstY, int $srcX, int $srcY, int $dstW, int $dstH, int $srcW, int $srcH)
50+
* @method void copyResized(Image $src, int $dstX, int $dstY, int $srcX, int $srcY, int $dstW, int $dstH, int $srcW, int $srcH)
51+
* @method Image cropAuto(int $mode = IMG_CROP_DEFAULT, float $threshold = .5, ?ImageColor $color = null)
52+
* @method void ellipse(int $centerX, int $centerY, int $width, int $height, ImageColor $color)
53+
* @method void fill(int $x, int $y, ImageColor $color)
54+
* @method void filledArc(int $centerX, int $centerY, int $width, int $height, int $startAngle, int $endAngle, ImageColor $color, int $style)
55+
* @method void filledEllipse(int $centerX, int $centerY, int $width, int $height, ImageColor $color)
56+
* @method void filledPolygon(array $points, ImageColor $color)
57+
* @method void filledRectangle(int $x1, int $y1, int $x2, int $y2, ImageColor $color)
58+
* @method void fillToBorder(int $x, int $y, ImageColor $borderColor, ImageColor $color)
59+
* @method void filter(int $filter, ...$args)
6460
* @method void flip(int $mode)
65-
* @method array ftText($size, $angle, $x, $y, $col, string $fontFile, string $text, array $extrainfo = null)
61+
* @method array ftText(float $size, float $angle, int $x, int $y, ImageColor $color, string $fontFile, string $text, array $options = [])
6662
* @method void gammaCorrect(float $inputgamma, float $outputgamma)
6763
* @method array getClip()
68-
* @method int interlace($interlace = null)
64+
* @method int getInterpolation()
65+
* @method int interlace(?bool $enable = null)
6966
* @method bool isTrueColor()
70-
* @method void layerEffect($effect)
71-
* @method void line($x1, $y1, $x2, $y2, ImageColor $color)
72-
* @method void openPolygon(array $points, int $num_points, ImageColor $color)
67+
* @method void layerEffect(int $effect)
68+
* @method void line(int $x1, int $y1, int $x2, int $y2, ImageColor $color)
69+
* @method void openPolygon(array $points, ImageColor $color)
7370
* @method void paletteCopy(Image $source)
7471
* @method void paletteToTrueColor()
75-
* @method void polygon(array $points, $numPoints, ImageColor $color)
76-
* @method array psText(string $text, $font, $size, ImageColor $color, ImageColor $backgroundColor, $x, $y, $space = null, $tightness = null, float $angle = null, $antialiasSteps = null)
77-
* @method void rectangle($x1, $y1, $x2, $y2, $col)
78-
* @method mixed resolution(int $res_x = null, int $res_y = null)
72+
* @method void polygon(array $points, ImageColor $color)
73+
* @method void rectangle(int $x1, int $y1, int $x2, int $y2, ImageColor $color)
74+
* @method mixed resolution(?int $resolutionX = null, ?int $resolutionY = null)
7975
* @method Image rotate(float $angle, ImageColor $backgroundColor)
80-
* @method void saveAlpha(bool $saveflag)
76+
* @method void saveAlpha(bool $enable)
8177
* @method Image scale(int $newWidth, int $newHeight = -1, int $mode = IMG_BILINEAR_FIXED)
8278
* @method void setBrush(Image $brush)
8379
* @method void setClip(int $x1, int $y1, int $x2, int $y2)
8480
* @method void setInterpolation(int $method = IMG_BILINEAR_FIXED)
85-
* @method void setPixel($x, $y, ImageColor $color)
81+
* @method void setPixel(int $x, int $y, ImageColor $color)
8682
* @method void setStyle(array $style)
87-
* @method void setThickness($thickness)
83+
* @method void setThickness(int $thickness)
8884
* @method void setTile(Image $tile)
89-
* @method void string($font, $x, $y, string $s, $col)
90-
* @method void stringUp($font, $x, $y, string $s, $col)
91-
* @method void trueColorToPalette(bool $dither, $ncolors)
92-
* @method array ttfText($size, $angle, $x, $y, ImageColor $color, string $fontfile, string $text)
85+
* @method void trueColorToPalette(bool $dither, int $ncolors)
86+
* @method array ttfText(float $size, float $angle, int $x, int $y, ImageColor $color, string $fontfile, string $text, array $options = [])
9387
* @property-read positive-int $width
9488
* @property-read positive-int $height
9589
* @property-read \GdImage $imageResource

0 commit comments

Comments
 (0)