|
22 | 22 | * $image->send(); |
23 | 23 | * </code> |
24 | 24 | * |
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) |
42 | 38 | * @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) |
47 | 43 | * @method int colorsTotal() |
48 | | - * @method int colorTransparent($color = null) |
| 44 | + * @method int colorTransparent(?int $color = null) |
49 | 45 | * @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) |
64 | 60 | * @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 = []) |
66 | 62 | * @method void gammaCorrect(float $inputgamma, float $outputgamma) |
67 | 63 | * @method array getClip() |
68 | | - * @method int interlace($interlace = null) |
| 64 | + * @method int getInterpolation() |
| 65 | + * @method int interlace(?bool $enable = null) |
69 | 66 | * @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) |
73 | 70 | * @method void paletteCopy(Image $source) |
74 | 71 | * @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) |
79 | 75 | * @method Image rotate(float $angle, ImageColor $backgroundColor) |
80 | | - * @method void saveAlpha(bool $saveflag) |
| 76 | + * @method void saveAlpha(bool $enable) |
81 | 77 | * @method Image scale(int $newWidth, int $newHeight = -1, int $mode = IMG_BILINEAR_FIXED) |
82 | 78 | * @method void setBrush(Image $brush) |
83 | 79 | * @method void setClip(int $x1, int $y1, int $x2, int $y2) |
84 | 80 | * @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) |
86 | 82 | * @method void setStyle(array $style) |
87 | | - * @method void setThickness($thickness) |
| 83 | + * @method void setThickness(int $thickness) |
88 | 84 | * @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 = []) |
93 | 87 | * @property-read positive-int $width |
94 | 88 | * @property-read positive-int $height |
95 | 89 | * @property-read \GdImage $imageResource |
|
0 commit comments