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