@@ -10,39 +10,39 @@ function gd_info(): array {}
10
10
11
11
function imageloadfont (string $ filename ): int |false {}
12
12
13
- function imagesetstyle (GdImage $ im , array $ styles ): bool {}
13
+ function imagesetstyle (GdImage $ image , array $ style ): bool {}
14
14
15
- function imagecreatetruecolor (int $ x_size , int $ y_size ): GdImage |false {}
15
+ function imagecreatetruecolor (int $ width , int $ height ): GdImage |false {}
16
16
17
- function imageistruecolor (GdImage $ im ): bool {}
17
+ function imageistruecolor (GdImage $ image ): bool {}
18
18
19
- function imagetruecolortopalette (GdImage $ im , bool $ ditherFlag , int $ colorWanted ): bool {}
19
+ function imagetruecolortopalette (GdImage $ image , bool $ dither , int $ num_colors ): bool {}
20
20
21
- function imagepalettetotruecolor (GdImage $ im ): bool {}
21
+ function imagepalettetotruecolor (GdImage $ image ): bool {}
22
22
23
- function imagecolormatch (GdImage $ im1 , GdImage $ im2 ): bool {}
23
+ function imagecolormatch (GdImage $ image1 , GdImage $ image2 ): bool {}
24
24
25
- function imagesetthickness (GdImage $ im , int $ thickness ): bool {}
25
+ function imagesetthickness (GdImage $ image , int $ thickness ): bool {}
26
26
27
- function imagefilledellipse (GdImage $ im , int $ cx , int $ cy , int $ w , int $ h , int $ color ): bool {}
27
+ function imagefilledellipse (GdImage $ image , int $ center_x , int $ center_y , int $ width , int $ height , int $ color ): bool {}
28
28
29
- function imagefilledarc (GdImage $ im , int $ cx , int $ cy , int $ w , int $ h , int $ s , int $ e , int $ col , int $ style ): bool {}
29
+ function imagefilledarc (GdImage $ image , int $ center_x , int $ center_y , int $ width , int $ height , int $ start_angle , int $ end_angle , int $ color , int $ style ): bool {}
30
30
31
- function imagealphablending (GdImage $ im , bool $ blend ): bool {}
31
+ function imagealphablending (GdImage $ image , bool $ enable ): bool {}
32
32
33
- function imagesavealpha (GdImage $ im , bool $ save ): bool {}
33
+ function imagesavealpha (GdImage $ image , bool $ enable ): bool {}
34
34
35
- function imagelayereffect (GdImage $ im , int $ effect ): bool {}
35
+ function imagelayereffect (GdImage $ image , int $ effect ): bool {}
36
36
37
- function imagecolorallocatealpha (GdImage $ im , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
37
+ function imagecolorallocatealpha (GdImage $ image , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
38
38
39
- function imagecolorresolvealpha (GdImage $ im , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
39
+ function imagecolorresolvealpha (GdImage $ image , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
40
40
41
- function imagecolorclosestalpha (GdImage $ im , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
41
+ function imagecolorclosestalpha (GdImage $ image , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
42
42
43
- function imagecolorexactalpha (GdImage $ im , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
43
+ function imagecolorexactalpha (GdImage $ image , int $ red , int $ green , int $ blue , int $ alpha ): int |false {}
44
44
45
- function imagecopyresampled (GdImage $ dst_im , GdImage $ src_im , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ dst_w , int $ dst_h , int $ src_w , int $ src_h ): bool {}
45
+ function imagecopyresampled (GdImage $ dst_image , GdImage $ src_image , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ dst_width , int $ dst_height , int $ src_width , int $ src_height ): bool {}
46
46
47
47
#ifdef PHP_WIN32
48
48
@@ -52,13 +52,13 @@ function imagegrabscreen(): GdImage|false {}
52
52
53
53
#endif
54
54
55
- function imagerotate (GdImage $ im , float $ angle , int $ bgdcolor , int $ ignoretransparent = 0 ): GdImage |false {}
55
+ function imagerotate (GdImage $ image , float $ angle , int $ bgdcolor , int $ ignoretransparent = 0 ): GdImage |false {}
56
56
57
- function imagesettile (GdImage $ im , GdImage $ tile ): bool {}
57
+ function imagesettile (GdImage $ image , GdImage $ tile ): bool {}
58
58
59
- function imagesetbrush (GdImage $ im , GdImage $ brush ): bool {}
59
+ function imagesetbrush (GdImage $ image , GdImage $ brush ): bool {}
60
60
61
- function imagecreate (int $ x_size , int $ y_size ): GdImage |false {}
61
+ function imagecreate (int $ width , int $ height ): GdImage |false {}
62
62
63
63
function imagetypes (): int {}
64
64
@@ -100,156 +100,157 @@ function imagecreatefrombmp(string $filename): GdImage|false {}
100
100
function imagecreatefromtga (string $ filename ): GdImage |false {}
101
101
#endif
102
102
103
- function imagexbm (GdImage $ im , ?string $ filename , ?int $ foreground = null ): bool {}
103
+ function imagexbm (GdImage $ image , ?string $ filename , ?int $ foreground = null ): bool {}
104
104
105
105
/** @param resource|string|null $to */
106
- function imagegif (GdImage $ im , $ to = null ): bool {}
106
+ function imagegif (GdImage $ image , $ to = null ): bool {}
107
107
108
108
#ifdef HAVE_GD_PNG
109
109
/** @param resource|string|null $to */
110
- function imagepng (GdImage $ im , $ to = null , int $ quality = -1 , int $ filters = -1 ): bool {}
110
+ function imagepng (GdImage $ image , $ to = null , int $ quality = -1 , int $ filters = -1 ): bool {}
111
111
#endif
112
112
113
113
#ifdef HAVE_GD_WEBP
114
114
/** @param resource|string|null $to */
115
- function imagewebp (GdImage $ im , $ to = null , int $ quality = -1 ): bool {}
115
+ function imagewebp (GdImage $ image , $ to = null , int $ quality = -1 ): bool {}
116
116
#endif
117
117
118
118
#ifdef HAVE_GD_JPG
119
119
/** @param resource|string|null $to */
120
- function imagejpeg (GdImage $ im , $ to = null , int $ quality = -1 ): bool {}
120
+ function imagejpeg (GdImage $ image , $ to = null , int $ quality = -1 ): bool {}
121
121
#endif
122
122
123
123
/** @param resource|string|null $to */
124
- function imagewbmp (GdImage $ im , $ to = null , ?int $ foreground = null ): bool {}
124
+ function imagewbmp (GdImage $ image , $ to = null , ?int $ foreground = null ): bool {}
125
125
126
- function imagegd (GdImage $ im , string $ to = UNKNOWN ): bool {}
126
+ function imagegd (GdImage $ image , string $ to = UNKNOWN ): bool {}
127
127
128
- function imagegd2 (GdImage $ im , string $ to = UNKNOWN , int $ chunk_size = UNKNOWN , int $ type = UNKNOWN ): bool {}
128
+ function imagegd2 (GdImage $ image , string $ to = UNKNOWN , int $ chunk_size = UNKNOWN , int $ type = UNKNOWN ): bool {}
129
129
130
130
#ifdef HAVE_GD_BMP
131
131
/** @param resource|string|null $to */
132
- function imagebmp (GdImage $ im , $ to = null , bool $ compressed = true ): bool {}
132
+ function imagebmp (GdImage $ image , $ to = null , bool $ compressed = true ): bool {}
133
133
#endif
134
134
135
- function imagedestroy (GdImage $ im ): bool {}
135
+ function imagedestroy (GdImage $ image ): bool {}
136
136
137
- function imagecolorallocate (GdImage $ im , int $ red , int $ green , int $ blue ): int |false {}
137
+ function imagecolorallocate (GdImage $ image , int $ red , int $ green , int $ blue ): int |false {}
138
138
139
139
function imagepalettecopy (GdImage $ dst , GdImage $ src ): void {}
140
140
141
- function imagecolorat (GdImage $ im , int $ x , int $ y ): int |false {}
141
+ function imagecolorat (GdImage $ image , int $ x , int $ y ): int |false {}
142
142
143
- function imagecolorclosest (GdImage $ im , int $ red , int $ green , int $ blue ): int |false {}
143
+ function imagecolorclosest (GdImage $ image , int $ red , int $ green , int $ blue ): int |false {}
144
144
145
- function imagecolorclosesthwb (GdImage $ im , int $ red , int $ green , int $ blue ): int |false {}
145
+ function imagecolorclosesthwb (GdImage $ image , int $ red , int $ green , int $ blue ): int |false {}
146
146
147
- function imagecolordeallocate (GdImage $ im , int $ index ): bool {}
147
+ function imagecolordeallocate (GdImage $ image , int $ index ): bool {}
148
148
149
- function imagecolorresolve (GdImage $ im , int $ red , int $ green , int $ blue ): int |false {}
149
+ function imagecolorresolve (GdImage $ image , int $ red , int $ green , int $ blue ): int |false {}
150
150
151
- function imagecolorexact (GdImage $ im , int $ red , int $ green , int $ blue ): int |false {}
151
+ function imagecolorexact (GdImage $ image , int $ red , int $ green , int $ blue ): int |false {}
152
152
153
- function imagecolorset (GdImage $ im , int $ color , int $ red , int $ green , int $ blue , int $ alpha = 0 ): ?bool {}
153
+ function imagecolorset (GdImage $ image , int $ color , int $ red , int $ green , int $ blue , int $ alpha = 0 ): ?bool {}
154
154
155
- function imagecolorsforindex (GdImage $ im , int $ index ): array |false {}
155
+ function imagecolorsforindex (GdImage $ image , int $ index ): array |false {}
156
156
157
- function imagegammacorrect (GdImage $ im , float $ inputgamma , float $ outputgamma ): bool {}
157
+ function imagegammacorrect (GdImage $ image , float $ inputgamma , float $ outputgamma ): bool {}
158
158
159
- function imagesetpixel (GdImage $ im , int $ x , int $ y , int $ col ): bool {}
159
+ function imagesetpixel (GdImage $ image , int $ x , int $ y , int $ color ): bool {}
160
160
161
- function imageline (GdImage $ im , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ col ): bool {}
161
+ function imageline (GdImage $ image , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ color ): bool {}
162
162
163
- function imagedashedline (GdImage $ im , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ col ): bool {}
163
+ function imagedashedline (GdImage $ image , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ color ): bool {}
164
164
165
- function imagerectangle (GdImage $ im , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ col ): bool {}
165
+ function imagerectangle (GdImage $ image , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ color ): bool {}
166
166
167
- function imagefilledrectangle (GdImage $ im , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ col ): bool {}
167
+ function imagefilledrectangle (GdImage $ image , int $ x1 , int $ y1 , int $ x2 , int $ y2 , int $ color ): bool {}
168
168
169
- function imagearc (GdImage $ im , int $ cx , int $ cy , int $ w , int $ h , int $ s , int $ e , int $ col ): bool {}
169
+ function imagearc (GdImage $ image , int $ cx , int $ cy , int $ width , int $ height , int $ s , int $ e , int $ color ): bool {}
170
170
171
- function imageellipse (GdImage $ im , int $ cx , int $ cy , int $ w , int $ h , int $ color ): bool {}
171
+ function imageellipse (GdImage $ image , int $ cx , int $ cy , int $ width , int $ height , int $ color ): bool {}
172
172
173
- function imagefilltoborder (GdImage $ im , int $ x , int $ y , int $ border , int $ col ): bool {}
173
+ function imagefilltoborder (GdImage $ image , int $ x , int $ y , int $ border , int $ color ): bool {}
174
174
175
- function imagefill (GdImage $ im , int $ x , int $ y , int $ col ): bool {}
175
+ function imagefill (GdImage $ image , int $ x , int $ y , int $ color ): bool {}
176
176
177
- function imagecolorstotal (GdImage $ im ): int {}
177
+ function imagecolorstotal (GdImage $ image ): int {}
178
178
179
- function imagecolortransparent (GdImage $ im , ?int $ col = null ): ?int {}
179
+ function imagecolortransparent (GdImage $ image , ?int $ color = null ): ?int {}
180
180
181
- function imageinterlace (GdImage $ im , ?int $ interlace = null ): ?int {}
181
+ function imageinterlace (GdImage $ image , ?int $ interlace = null ): ?int {}
182
182
183
- function imagepolygon (GdImage $ im , array $ points , int $ num_points_or_col , ?int $ col = null ): bool {}
183
+ function imagepolygon (GdImage $ image , array $ points , int $ num_points_or_color , ?int $ color = null ): bool {}
184
184
185
- function imageopenpolygon (GdImage $ im , array $ points , int $ num_points_or_col , ?int $ col = null ): bool {}
185
+ function imageopenpolygon (GdImage $ image , array $ points , int $ num_points_or_color , ?int $ color = null ): bool {}
186
186
187
- function imagefilledpolygon (GdImage $ im , array $ points , int $ num_points_or_col , ?int $ col = null ): bool {}
187
+ function imagefilledpolygon (GdImage $ image , array $ points , int $ num_points_or_color , ?int $ color = null ): bool {}
188
188
189
189
function imagefontwidth (int $ font ): int {}
190
190
191
191
function imagefontheight (int $ font ): int {}
192
192
193
- function imagechar (GdImage $ im , int $ font , int $ x , int $ y , string $ c , int $ col ): bool {}
193
+ function imagechar (GdImage $ image , int $ font , int $ x , int $ y , string $ char , int $ color ): bool {}
194
194
195
- function imagecharup (GdImage $ im , int $ font , int $ x , int $ y , string $ c , int $ col ): bool {}
195
+ function imagecharup (GdImage $ image , int $ font , int $ x , int $ y , string $ char , int $ color ): bool {}
196
196
197
- function imagestring (GdImage $ im , int $ font , int $ x , int $ y , string $ str , int $ col ): bool {}
197
+ function imagestring (GdImage $ image , int $ font , int $ x , int $ y , string $ string , int $ color ): bool {}
198
198
199
- function imagestringup (GdImage $ im , int $ font , int $ x , int $ y , string $ str , int $ col ): bool {}
199
+ function imagestringup (GdImage $ image , int $ font , int $ x , int $ y , string $ string , int $ color ): bool {}
200
200
201
- function imagecopy (GdImage $ dst_im , GdImage $ src_im , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h ): bool {}
201
+ function imagecopy (GdImage $ dst_image , GdImage $ src_image , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h ): bool {}
202
202
203
- function imagecopymerge (GdImage $ dst_im , GdImage $ src_im , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h , int $ pct ): bool {}
203
+ function imagecopymerge (GdImage $ dst_image , GdImage $ src_image , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h , int $ pct ): bool {}
204
204
205
- function imagecopymergegray (GdImage $ dst_im , GdImage $ src_im , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h , int $ pct ): bool {}
205
+ function imagecopymergegray (GdImage $ dst_image , GdImage $ src_image , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ src_w , int $ src_h , int $ pct ): bool {}
206
206
207
- function imagecopyresized (GdImage $ dst_im , GdImage $ src_im , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ dst_w , int $ dst_h , int $ src_w , int $ src_h ): bool {}
207
+ function imagecopyresized (GdImage $ dst_image , GdImage $ src_image , int $ dst_x , int $ dst_y , int $ src_x , int $ src_y , int $ dst_w , int $ dst_h , int $ src_w , int $ src_h ): bool {}
208
208
209
- function imagesx (GdImage $ im ): int {}
209
+ function imagesx (GdImage $ image ): int {}
210
210
211
- function imagesy (GdImage $ im ): int {}
211
+ function imagesy (GdImage $ image ): int {}
212
212
213
- function imagesetclip (GdImage $ im , int $ x1 , int $ x2 , int $ y1 , int $ y2 ): bool {}
213
+ function imagesetclip (GdImage $ image , int $ x1 , int $ x2 , int $ y1 , int $ y2 ): bool {}
214
214
215
- function imagegetclip (GdImage $ im ): array {}
215
+ function imagegetclip (GdImage $ image ): array {}
216
216
217
217
#ifdef HAVE_GD_FREETYPE
218
- function imageftbbox (float $ size , float $ angle , string $ font_file , string $ text , array $ extrainfo = []): array |false {}
218
+ function imageftbbox (float $ size , float $ angle , string $ font_file , string $ text , array $ extra_info = []): array |false {}
219
219
220
- function imagefttext (GdImage $ im , float $ size , float $ angle , int $ x , int $ y , int $ col , string $ font_file , string $ text , array $ extrainfo = []): array |false {}
220
+ function imagefttext (GdImage $ image , float $ size , float $ angle , int $ x , int $ y , int $ color , string $ font_file , string $ text , array $ extra_info = []): array |false {}
221
221
222
222
/** @alias imageftbbox */
223
- function imagettfbbox (float $ size , float $ angle , string $ font_file , string $ text , array $ extrainfo = []): array |false {}
223
+ function imagettfbbox (float $ size , float $ angle , string $ font_file , string $ text , array $ extra_info = []): array |false {}
224
224
225
225
/** @alias imagefttext */
226
- function imagettftext (GdImage $ im , float $ size , float $ angle , int $ x , int $ y , int $ col , string $ font_file , string $ text , array $ extrainfo = []): array |false {}
226
+ function imagettftext (GdImage $ image , float $ size , float $ angle , int $ x , int $ y , int $ color , string $ font_file , string $ text , array $ extra_info = []): array |false {}
227
227
#endif
228
228
229
229
/** @param array|int|float|bool $filter_args */
230
- function imagefilter (GdImage $ im , int $ filtertype , ...$ filter_args ): bool {}
230
+ function imagefilter (GdImage $ image , int $ filter_type , ...$ filter_args ): bool {}
231
231
232
- function imageconvolution (GdImage $ im , array $ matrix3x3 , float $ div , float $ offset ): bool {}
232
+ function imageconvolution (GdImage $ image , array $ matrix , float $ div , float $ offset ): bool {}
233
233
234
- function imageflip (GdImage $ im , int $ mode ): bool {}
234
+ function imageflip (GdImage $ image , int $ mode ): bool {}
235
235
236
- function imageantialias (GdImage $ im , bool $ on ): bool {}
236
+ function imageantialias (GdImage $ image , bool $ enable ): bool {}
237
237
238
- function imagecrop (GdImage $ im , array $ rect ): GdImage |false {}
238
+ function imagecrop (GdImage $ image , array $ rectangle ): GdImage |false {}
239
239
240
- function imagecropauto (GdImage $ im , int $ mode = IMG_CROP_DEFAULT , float $ threshold = 0.5 , int $ color = -1 ): GdImage |false {}
240
+ function imagecropauto (GdImage $ image , int $ mode = IMG_CROP_DEFAULT , float $ threshold = 0.5 , int $ color = -1 ): GdImage |false {}
241
241
242
- function imagescale (GdImage $ im , int $ new_width , int $ new_height = -1 , int $ mode = IMG_BILINEAR_FIXED ): GdImage |false {}
242
+ function imagescale (GdImage $ image , int $ new_width , int $ new_height = -1 , int $ mode = IMG_BILINEAR_FIXED ): GdImage |false {}
243
243
244
- function imageaffine (GdImage $ im , array $ affine , ?array $ clip = null ): GdImage |false {}
244
+ function imageaffine (GdImage $ image , array $ affine , ?array $ clip = null ): GdImage |false {}
245
245
246
246
/** @param array|float $options */
247
247
function imageaffinematrixget (int $ type , $ options ): array |false {}
248
248
249
- function imageaffinematrixconcat (array $ m1 , array $ m2 ): array |false {}
249
+ function imageaffinematrixconcat (array $ matrix1 , array $ matrix2 ): array |false {}
250
250
251
- function imagegetinterpolation (GdImage $ im ): int {}
251
+ function imagegetinterpolation (GdImage $ image ): int {}
252
252
253
- function imagesetinterpolation (GdImage $ im , int $ method = IMG_BILINEAR_FIXED ): bool {}
253
+ function imagesetinterpolation (GdImage $ image , int $ method = IMG_BILINEAR_FIXED ): bool {}
254
+
255
+ function imageresolution (GdImage $ image , ?int $ resolution_x = null , ?int $ resolution_y = null ): array |bool {}
254
256
255
- function imageresolution (GdImage $ im , ?int $ res_x = null , ?int $ res_y = null ): array |bool {}
0 commit comments