summaryrefslogtreecommitdiff
path: root/ext/gd/gd.stub.php
blob: 7b639f9371037d9d5be500d27865b24affd38878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?php

function gd_info(): array {}

/** @return int|false */
function imageloadfont(string $filename) {}

function imagesetstyle($im, array $styles): bool {}

/** @return GdImage|false */
function imagecreatetruecolor(int $x_size, int $y_size) {}

function imageistruecolor(GdImage $im): bool {}

function imagetruecolortopalette(GdImage $im, bool $ditherFlag, int $colorWanted): bool {}

function imagepalettetotruecolor(GdImage $im): bool {}

function imagecolormatch($im1, $im2): bool {}

function imagesetthickness(GdImage $im, int $thickness): bool {}

function imagefilledellipse(GdImage $im, int $cx, int $cy, int $w, int $h, int $color): bool {}

function imagefilledarc(GdImage $im, int $cx, int $cy, int $w, int $h, int $s, int $e, int $col, int $style): bool {}

function imagealphablending(GdImage $im, bool $blend): bool {}

function imagesavealpha(GdImage $im, bool $save): bool {}

function imagelayereffect(GdImage $im, int $effect): bool {}

/** @return int|false */
function imagecolorallocatealpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}

/** @return int|false */
function imagecolorresolvealpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}

/** @return int|false */
function imagecolorclosestalpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}

/** @return int|false */
function imagecolorexactalpha(GdImage $im, int $red, int $green, int $blue, int $alpha) {}

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 {}

#ifdef PHP_WIN32

/** @return GdImage|false */
function imagegrabwindow(int $handle, int $client_area = 0) {}

/** @return GdImage|false */
function imagegrabscreen() {}

#endif

/** @return GdImage|false */
function imagerotate(GdImage $im, float $angle, int $bgdcolor, int $ignoretransparent = 0) {}

function imagesettile(GdImage $im, $tile): bool {}

function imagesetbrush(GdImage $im, $brush): bool {}

/** @return GdImage|false */
function imagecreate(int $x_size, int $y_size) {}

function imagetypes(): int {}

/** @return GdImage|false */
function imagecreatefromstring(string $image) {}

/** @return GdImage|false */
function imagecreatefromgif(string $filename) {}

#ifdef HAVE_GD_JPG
/** @return GdImage|false */
function imagecreatefromjpeg(string $filename) {}
#endif

#ifdef HAVE_GD_PNG
/** @return GdImage|false */
function imagecreatefrompng(string $filename) {}
#endif

#ifdef HAVE_GD_WEBP
/** @return GdImage|false */
function imagecreatefromwebp(string $filename) {}
#endif

/** @return GdImage|false */
function imagecreatefromxbm(string $filename) {}

#ifdef HAVE_GD_XPM
/** @return GdImage|false */
function imagecreatefromxpm(string $filename) {}
#endif

/** @return GdImage|false */
function imagecreatefromwbmp(string $filename) {}

/** @return GdImage|false */
function imagecreatefromgd(string $filename) {}

/** @return GdImage|false */
function imagecreatefromgd2(string $filename) {}

/** @return GdImage|false */
function imagecreatefromgd2part(string $filename, int $srcX, int $srcY, int $width, int $height) {}

#ifdef HAVE_GD_BMP
/** @return GdImage|false */
function imagecreatefrombmp(string $filename) {}
#endif
    
#ifdef HAVE_GD_TGA
/** @return GdImage|false */
function imagecreatefromtga(string $filename) {}
#endif

function imagexbm(GdImage $im, ?string $filename, int $foreground = UNKNOWN): bool {}

function imagegif(GdImage $im, $to = NULL): bool {}

#ifdef HAVE_GD_PNG
function imagepng(GdImage $im, $to = NULL, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {}
#endif

#ifdef HAVE_GD_WEBP
function imagewebp(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
#endif

#ifdef HAVE_GD_JPG
function imagejpeg(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
#endif

function imagewbmp(GdImage $im, $to = NULL, int $foreground = UNKNOWN): bool {}

function imagegd(GdImage $im, $to = UNKNOWN): bool {}

function imagegd2(GdImage $im, $to = UNKNOWN, int $chunk_size = UNKNOWN, int $type = UNKNOWN): bool {}

#ifdef HAVE_GD_BMP
function imagebmp(GdImage $im, $to = NULL, int $compressed = 1): bool {}
#endif

function imagedestroy(GdImage $im): bool {}

/** @return int|false */
function imagecolorallocate(GdImage $im, int $red, int $green, int $blue) {}

function imagepalettecopy(GdImage $dst, GdImage $src): void {}

/** @return int|false */
function imagecolorat(GdImage $im, int $x, int $y) {}

/** @return int|false */
function imagecolorclosest(GdImage $im, int $red, int $green, int $blue) {}

/** @return int|false */
function imagecolorclosesthwb(GdImage $im, int $red, int $green, int $blue) {}

function imagecolordeallocate(GdImage $im, int $index): bool {}

/** @return int|false */
function imagecolorresolve(GdImage $im, int $red, int $green, int $blue) {}

/** @return int|false */
function imagecolorexact(GdImage $im, int $red, int $green, int $blue) {}

/** @return ?false */
function imagecolorset(GdImage $im, int $color, int $red, int $green, int $blue, int $alpha = 0) {}

/** @return array|false */
function imagecolorsforindex(GdImage $im, int $index) {}

function imagegammacorrect(GdImage $im, float $inputgamma, float $outputgamma): bool {}

function imagesetpixel(GdImage $im, int $x, int $y, int $col): bool {}

function imageline(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}

function imagedashedline(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}

function imagerectangle(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}

function imagefilledrectangle(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}

function imagearc(GdImage $im, int $cx, int $cy, int $w, int $h, int $s, int $e, int $col): bool {}

function imageellipse(GdImage $im, int $cx, int $cy, int $w, int $h, int $color): bool {}

function imagefilltoborder(GdImage $im, int $x, int $y, int $border, int $col): bool {}

function imagefill(GdImage $im, int $x, int $y, int $col): bool {}

function imagecolorstotal(GdImage $im): int {}

function imagecolortransparent(GdImage $im, int $col = UNKNOWN): ?int {}

function imageinterlace(GdImage $im, int $interlace = UNKNOWN): ?int {}

function imagepolygon(GdImage $im, array $points, int $num_pos, int $col): bool {}

function imageopenpolygon(GdImage $im, array $points, int $num_pos, int $col): bool {}

function imagefilledpolygon(GdImage $im, array $points, int $num_pos, int $col): bool {}

function imagefontwidth(int $font): int {}

function imagefontheight(int $font): int {}

function imagechar(GdImage $im, int $font, int $x, int $y, string $c, int $col): bool {}

function imagecharup(GdImage $im, int $font, int $x, int $y, string $c, int $col): bool {}

function imagestring(GdImage $im, int $font, int $x, int $y, string $str, int $col): bool {}

function imagestringup(GdImage $im, int $font, int $x, int $y, string $str, int $col): bool {}

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 {}

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 {}

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 {}

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 {}

function imagesx(GdImage $im): int {}

function imagesy(GdImage $im): int {}

function imagesetclip(GdImage $im, int $x1, int $x2, int $y1, int $y2): bool {}

function imagegetclip(GdImage $im): array {}

#ifdef HAVE_GD_FREETYPE
/** @return array|false */
function imageftbbox(float $size, float $angle, string $font_file, string $text, array $extrainfo = UNKNOWN) {}

function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text, array $extrainfo = UNKNOWN) {}

function imagettfbbox(float $size, float $angle, string $font_file, string $text) {}

function imagettftext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text) {}
#endif

function imagefilter(GdImage $im, int $filtertype, $arg1 = UNKNOWN, $arg2 = UNKNOWN, $arg3 = UNKNOWN, $arg4 = UNKNOWN): bool {}

function imageconvolution(GdImage $im, array $matrix3x3, float $div, float $offset): bool {}

function imageflip(GdImage $im, int $mode): bool {}

function imageantialias(GdImage $im, bool $on): bool {}

/** @return GdImage|false */
function imagecrop(GdImage $im, array $rect) {}

/** @return GdImage|false */
function imagecropauto(GdImage $im, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1) {}

/** @return GdImage|false */
function imagescale(GdImage $im, int $new_width, int $new_height = UNKNOWN, int $mode = IMG_BILINEAR_FIXED) {}

/** @return GdImage|false */
function imageaffine(GdImage $im, array $affine, array $clip = UNKNOWN) {}

/** @return array|false */
function imageaffinematrixget(int $type, $options = UNKNOWN) {}

/** @return array|false */
function imageaffinematrixconcat(array $m1, array $m2) {}

function imagesetinterpolation(GdImage $im, int $method = IMG_BILENEAR_FIXED): bool {}

/** @return array|true */
function imageresolution(GdImage $im, int $res_x = UNKNOWN, int $res_y = UNKNOWN) {}