Debian Codegraph @

codelitephp/resources/cc/gd.php

raw
1 <?php
2
3 // Start of gd v.
4
5 /**
6 * Retrieve information about the currently installed GD library
7 * @link http://www.php.net/manual/en/function.gd-info.php
8 * @return array an associative array.
9 * </p>
10 * <p>
11 * <table>
12 * Elements of array returned by gd_info
13 *
14 *
15 * <tr valign="top">
16 * <td>Attribute</td>
17 * <td>Meaning</td>
18 * </tr>
19 *
20 *
21 * <tr valign="top">
22 * <td>GD Version</td>
23 * <td>string value describing the installed
24 * libgd version.</td>
25 * </tr>
26 * <tr valign="top">
27 * <td>FreeType Support</td>
28 * <td>boolean value. true
29 * if FreeType Support is installed.</td>
30 * </tr>
31 * <tr valign="top">
32 * <td>FreeType Linkage</td>
33 * <td>string value describing the way in which
34 * FreeType was linked. Expected values are: 'with freetype',
35 * 'with TTF library', and 'with unknown library'. This element will
36 * only be defined if FreeType Support evaluated to
37 * true.</td>
38 * </tr>
39 * <tr valign="top">
40 * <td>T1Lib Support</td>
41 * <td>boolean value. true
42 * if T1Lib support is included.</td>
43 * </tr>
44 * <tr valign="top">
45 * <td>GIF Read Support</td>
46 * <td>boolean value. true
47 * if support for reading GIF
48 * images is included.</td>
49 * </tr>
50 * <tr valign="top">
51 * <td>GIF Create Support</td>
52 * <td>boolean value. true
53 * if support for creating GIF
54 * images is included.</td>
55 * </tr>
56 * <tr valign="top">
57 * <td>JPEG Support</td>
58 * <td>boolean value. true
59 * if JPEG support is included.</td>
60 * </tr>
61 * <tr valign="top">
62 * <td>PNG Support</td>
63 * <td>boolean value. true
64 * if PNG support is included.</td>
65 * </tr>
66 * <tr valign="top">
67 * <td>WBMP Support</td>
68 * <td>boolean value. true
69 * if WBMP support is included.</td>
70 * </tr>
71 * <tr valign="top">
72 * <td>XBM Support</td>
73 * <td>boolean value. true
74 * if XBM support is included.</td>
75 * </tr>
76 * <tr valign="top">
77 * <td>WebP Support</td>
78 * <td>boolean value. true
79 * if WebP support is included.</td>
80 * </tr>
81 *
82 *
83 * </table>
84 * </p>
85 *
86 * <p>
87 * Previous to PHP 5.3.0, the JPEG Support attribute was named
88 * JPG Support.
89 */
90 function gd_info () {}
91
92 /**
93 * Draws an arc
94 * @link http://www.php.net/manual/en/function.imagearc.php
95 * @param image resource
96 * @param cx int <p>
97 * x-coordinate of the center.
98 * </p>
99 * @param cy int <p>
100 * y-coordinate of the center.
101 * </p>
102 * @param width int <p>
103 * The arc width.
104 * </p>
105 * @param height int <p>
106 * The arc height.
107 * </p>
108 * @param start int <p>
109 * The arc start angle, in degrees.
110 * </p>
111 * @param end int <p>
112 * The arc end angle, in degrees.
113 * 0° is located at the three-o'clock position, and the arc is drawn
114 * clockwise.
115 * </p>
116 * @param color int <p>
117 * A color identifier created with
118 * imagecolorallocate.
119 * </p>
120 * @return bool Returns true on success, false on failure.
121 */
122 function imagearc ($image, $cx, $cy, $width, $height, $start, $end, $color) {}
123
124 /**
125 * Draw an ellipse
126 * @link http://www.php.net/manual/en/function.imageellipse.php
127 * @param image resource
128 * @param cx int <p>
129 * x-coordinate of the center.
130 * </p>
131 * @param cy int <p>
132 * y-coordinate of the center.
133 * </p>
134 * @param width int <p>
135 * The ellipse width.
136 * </p>
137 * @param height int <p>
138 * The ellipse height.
139 * </p>
140 * @param color int <p>
141 * The color of the ellipse. A color identifier created with
142 * imagecolorallocate.
143 * </p>
144 * @return bool Returns true on success, false on failure.
145 */
146 function imageellipse ($image, $cx, $cy, $width, $height, $color) {}
147
148 /**
149 * Draw a character horizontally
150 * @link http://www.php.net/manual/en/function.imagechar.php
151 * @param image resource
152 * @param font int
153 * @param x int <p>
154 * x-coordinate of the start.
155 * </p>
156 * @param y int <p>
157 * y-coordinate of the start.
158 * </p>
159 * @param c string <p>
160 * The character to draw.
161 * </p>
162 * @param color int <p>
163 * A color identifier created with
164 * imagecolorallocate.
165 * </p>
166 * @return bool Returns true on success, false on failure.
167 */
168 function imagechar ($image, $font, $x, $y, $c, $color) {}
169
170 /**
171 * Draw a character vertically
172 * @link http://www.php.net/manual/en/function.imagecharup.php
173 * @param image resource
174 * @param font int
175 * @param x int <p>
176 * x-coordinate of the start.
177 * </p>
178 * @param y int <p>
179 * y-coordinate of the start.
180 * </p>
181 * @param c string <p>
182 * The character to draw.
183 * </p>
184 * @param color int <p>
185 * A color identifier created with
186 * imagecolorallocate.
187 * </p>
188 * @return bool Returns true on success, false on failure.
189 */
190 function imagecharup ($image, $font, $x, $y, $c, $color) {}
191
192 /**
193 * Get the index of the color of a pixel
194 * @link http://www.php.net/manual/en/function.imagecolorat.php
195 * @param image resource
196 * @param x int <p>
197 * x-coordinate of the point.
198 * </p>
199 * @param y int <p>
200 * y-coordinate of the point.
201 * </p>
202 * @return int the index of the color.
203 */
204 function imagecolorat ($image, $x, $y) {}
205
206 /**
207 * Allocate a color for an image
208 * @link http://www.php.net/manual/en/function.imagecolorallocate.php
209 * @param image resource
210 * @param red int <p>&gd.value.red;</p>
211 * @param green int <p>&gd.value.green;</p>
212 * @param blue int <p>&gd.value.blue;</p>
213 * @return int A color identifier or false if the allocation failed.
214 */
215 function imagecolorallocate ($image, $red, $green, $blue) {}
216
217 /**
218 * Copy the palette from one image to another
219 * @link http://www.php.net/manual/en/function.imagepalettecopy.php
220 * @param destination resource <p>
221 * The destination image resource.
222 * </p>
223 * @param source resource <p>
224 * The source image resource.
225 * </p>
226 * @return void
227 */
228 function imagepalettecopy ($destination, $source) {}
229
230 /**
231 * Create a new image from the image stream in the string
232 * @link http://www.php.net/manual/en/function.imagecreatefromstring.php
233 * @param image string <p>
234 * A string containing the image data.
235 * </p>
236 * @return resource An image resource will be returned on success. false is returned if
237 * the image type is unsupported, the data is not in a recognised format,
238 * or the image is corrupt and cannot be loaded.
239 */
240 function imagecreatefromstring ($image) {}
241
242 /**
243 * Get the index of the closest color to the specified color
244 * @link http://www.php.net/manual/en/function.imagecolorclosest.php
245 * @param image resource
246 * @param red int <p>&gd.value.red;</p>
247 * @param green int <p>&gd.value.green;</p>
248 * @param blue int <p>&gd.value.blue;</p>
249 * @return int the index of the closest color, in the palette of the image, to
250 * the specified one
251 */
252 function imagecolorclosest ($image, $red, $green, $blue) {}
253
254 /**
255 * Get the index of the color which has the hue, white and blackness
256 * @link http://www.php.net/manual/en/function.imagecolorclosesthwb.php
257 * @param image resource
258 * @param red int <p>&gd.value.red;</p>
259 * @param green int <p>&gd.value.green;</p>
260 * @param blue int <p>&gd.value.blue;</p>
261 * @return int an integer with the index of the color which has
262 * the hue, white and blackness nearest the given color.
263 */
264 function imagecolorclosesthwb ($image, $red, $green, $blue) {}
265
266 /**
267 * De-allocate a color for an image
268 * @link http://www.php.net/manual/en/function.imagecolordeallocate.php
269 * @param image resource
270 * @param color int <p>
271 * The color identifier.
272 * </p>
273 * @return bool Returns true on success, false on failure.
274 */
275 function imagecolordeallocate ($image, $color) {}
276
277 /**
278 * Get the index of the specified color or its closest possible alternative
279 * @link http://www.php.net/manual/en/function.imagecolorresolve.php
280 * @param image resource
281 * @param red int <p>&gd.value.red;</p>
282 * @param green int <p>&gd.value.green;</p>
283 * @param blue int <p>&gd.value.blue;</p>
284 * @return int a color index.
285 */
286 function imagecolorresolve ($image, $red, $green, $blue) {}
287
288 /**
289 * Get the index of the specified color
290 * @link http://www.php.net/manual/en/function.imagecolorexact.php
291 * @param image resource
292 * @param red int <p>&gd.value.red;</p>
293 * @param green int <p>&gd.value.green;</p>
294 * @param blue int <p>&gd.value.blue;</p>
295 * @return int the index of the specified color in the palette, or -1 if the
296 * color does not exist.
297 */
298 function imagecolorexact ($image, $red, $green, $blue) {}
299
300 /**
301 * Set the color for the specified palette index
302 * @link http://www.php.net/manual/en/function.imagecolorset.php
303 * @param image resource
304 * @param index int <p>
305 * An index in the palette.
306 * </p>
307 * @param red int <p>&gd.value.red;</p>
308 * @param green int <p>&gd.value.green;</p>
309 * @param blue int <p>&gd.value.blue;</p>
310 * @param alpha int[optional] <p>
311 * Value of alpha component.
312 * </p>
313 * @return void
314 */
315 function imagecolorset ($image, $index, $red, $green, $blue, $alpha = null) {}
316
317 /**
318 * Define a color as transparent
319 * @link http://www.php.net/manual/en/function.imagecolortransparent.php
320 * @param image resource
321 * @param color int[optional] <p>
322 * A color identifier created with
323 * imagecolorallocate.
324 * </p>
325 * @return int The identifier of the new (or current, if none is specified)
326 * transparent color is returned. If color
327 * is not specified, and the image has no transparent color, the
328 * returned identifier will be -1.
329 */
330 function imagecolortransparent ($image, $color = null) {}
331
332 /**
333 * Find out the number of colors in an image's palette
334 * @link http://www.php.net/manual/en/function.imagecolorstotal.php
335 * @param image resource <p>
336 * An image resource, returned by one of the image creation functions, such
337 * as imagecreatefromgif.
338 * </p>
339 * @return int the number of colors in the specified image's palette or 0 for
340 * truecolor images.
341 */
342 function imagecolorstotal ($image) {}
343
344 /**
345 * Get the colors for an index
346 * @link http://www.php.net/manual/en/function.imagecolorsforindex.php
347 * @param image resource
348 * @param index int <p>
349 * The color index.
350 * </p>
351 * @return array an associative array with red, green, blue and alpha keys that
352 * contain the appropriate values for the specified color index.
353 */
354 function imagecolorsforindex ($image, $index) {}
355
356 /**
357 * Copy part of an image
358 * @link http://www.php.net/manual/en/function.imagecopy.php
359 * @param dst_im resource <p>&gd.image.destination;</p>
360 * @param src_im resource <p>&gd.image.source;</p>
361 * @param dst_x int <p>
362 * x-coordinate of destination point.
363 * </p>
364 * @param dst_y int <p>
365 * y-coordinate of destination point.
366 * </p>
367 * @param src_x int <p>
368 * x-coordinate of source point.
369 * </p>
370 * @param src_y int <p>
371 * y-coordinate of source point.
372 * </p>
373 * @param src_w int <p>&gd.source.width;</p>
374 * @param src_h int <p>&gd.source.height;</p>
375 * @return bool Returns true on success, false on failure.
376 */
377 function imagecopy ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h) {}
378
379 /**
380 * Copy and merge part of an image
381 * @link http://www.php.net/manual/en/function.imagecopymerge.php
382 * @param dst_im resource <p>&gd.image.destination;</p>
383 * @param src_im resource <p>&gd.image.source;</p>
384 * @param dst_x int <p>
385 * x-coordinate of destination point.
386 * </p>
387 * @param dst_y int <p>
388 * y-coordinate of destination point.
389 * </p>
390 * @param src_x int <p>
391 * x-coordinate of source point.
392 * </p>
393 * @param src_y int <p>
394 * y-coordinate of source point.
395 * </p>
396 * @param src_w int <p>&gd.source.width;</p>
397 * @param src_h int <p>&gd.source.height;</p>
398 * @param pct int <p>
399 * The two images will be merged according to pct
400 * which can range from 0 to 100. When pct = 0,
401 * no action is taken, when 100 this function behaves identically
402 * to imagecopy for pallete images, except for
403 * ignoring alpha components, while it implements alpha transparency
404 * for true colour images.
405 * </p>
406 * @return bool Returns true on success, false on failure.
407 */
408 function imagecopymerge ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
409
410 /**
411 * Copy and merge part of an image with gray scale
412 * @link http://www.php.net/manual/en/function.imagecopymergegray.php
413 * @param dst_im resource <p>&gd.image.destination;</p>
414 * @param src_im resource <p>&gd.image.source;</p>
415 * @param dst_x int <p>
416 * x-coordinate of destination point.
417 * </p>
418 * @param dst_y int <p>
419 * y-coordinate of destination point.
420 * </p>
421 * @param src_x int <p>
422 * x-coordinate of source point.
423 * </p>
424 * @param src_y int <p>
425 * y-coordinate of source point.
426 * </p>
427 * @param src_w int <p>&gd.source.width;</p>
428 * @param src_h int <p>&gd.source.height;</p>
429 * @param pct int <p>
430 * The src_im will be changed to grayscale according
431 * to pct where 0 is fully grayscale and 100 is
432 * unchanged. When pct = 100 this function behaves
433 * identically to imagecopy for pallete images, except for
434 * ignoring alpha components, while
435 * it implements alpha transparency for true colour images.
436 * </p>
437 * @return bool Returns true on success, false on failure.
438 */
439 function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) {}
440
441 /**
442 * Copy and resize part of an image
443 * @link http://www.php.net/manual/en/function.imagecopyresized.php
444 * @param dst_image resource <p>&gd.image.destination;</p>
445 * @param src_image resource <p>&gd.image.source;</p>
446 * @param dst_x int <p>
447 * x-coordinate of destination point.
448 * </p>
449 * @param dst_y int <p>
450 * y-coordinate of destination point.
451 * </p>
452 * @param src_x int <p>
453 * x-coordinate of source point.
454 * </p>
455 * @param src_y int <p>
456 * y-coordinate of source point.
457 * </p>
458 * @param dst_w int <p>
459 * Destination width.
460 * </p>
461 * @param dst_h int <p>
462 * Destination height.
463 * </p>
464 * @param src_w int <p>&gd.source.width;</p>
465 * @param src_h int <p>&gd.source.height;</p>
466 * @return bool Returns true on success, false on failure.
467 */
468 function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
469
470 /**
471 * Create a new palette based image
472 * @link http://www.php.net/manual/en/function.imagecreate.php
473 * @param width int <p>
474 * The image width.
475 * </p>
476 * @param height int <p>
477 * The image height.
478 * </p>
479 * @return resource &gd.return.identifier;
480 */
481 function imagecreate ($width, $height) {}
482
483 /**
484 * Create a new true color image
485 * @link http://www.php.net/manual/en/function.imagecreatetruecolor.php
486 * @param width int <p>
487 * Image width.
488 * </p>
489 * @param height int <p>
490 * Image height.
491 * </p>
492 * @return resource &gd.return.identifier;
493 */
494 function imagecreatetruecolor ($width, $height) {}
495
496 /**
497 * Finds whether an image is a truecolor image
498 * @link http://www.php.net/manual/en/function.imageistruecolor.php
499 * @param image resource
500 * @return bool true if the image is truecolor, false
501 * otherwise.
502 */
503 function imageistruecolor ($image) {}
504
505 /**
506 * Convert a true color image to a palette image
507 * @link http://www.php.net/manual/en/function.imagetruecolortopalette.php
508 * @param image resource
509 * @param dither bool <p>
510 * Indicates if the image should be dithered - if it is true then
511 * dithering will be used which will result in a more speckled image but
512 * with better color approximation.
513 * </p>
514 * @param ncolors int <p>
515 * Sets the maximum number of colors that should be retained in the palette.
516 * </p>
517 * @return bool Returns true on success, false on failure.
518 */
519 function imagetruecolortopalette ($image, $dither, $ncolors) {}
520
521 /**
522 * Converts a palette based image to true color
523 * @link http://www.php.net/manual/en/function.imagepalettetotruecolor.php
524 * @param src resource
525 * @return bool true if the convertion was complete, or if the source image already
526 * is a true color image, otherwise false is returned.
527 */
528 function imagepalettetotruecolor ($src) {}
529
530 /**
531 * Set the thickness for line drawing
532 * @link http://www.php.net/manual/en/function.imagesetthickness.php
533 * @param image resource
534 * @param thickness int <p>
535 * Thickness, in pixels.
536 * </p>
537 * @return bool Returns true on success, false on failure.
538 */
539 function imagesetthickness ($image, $thickness) {}
540
541 /**
542 * Draw a partial arc and fill it
543 * @link http://www.php.net/manual/en/function.imagefilledarc.php
544 * @param image resource
545 * @param cx int <p>
546 * x-coordinate of the center.
547 * </p>
548 * @param cy int <p>
549 * y-coordinate of the center.
550 * </p>
551 * @param width int <p>
552 * The arc width.
553 * </p>
554 * @param height int <p>
555 * The arc height.
556 * </p>
557 * @param start int <p>
558 * The arc start angle, in degrees.
559 * </p>
560 * @param end int <p>
561 * The arc end angle, in degrees.
562 * 0° is located at the three-o'clock position, and the arc is drawn
563 * clockwise.
564 * </p>
565 * @param color int <p>
566 * A color identifier created with
567 * imagecolorallocate.
568 * </p>
569 * @param style int <p>
570 * A bitwise OR of the following possibilities:
571 *
572 * IMG_ARC_PIE
573 * @return bool Returns true on success, false on failure.
574 */
575 function imagefilledarc ($image, $cx, $cy, $width, $height, $start, $end, $color, $style) {}
576
577 /**
578 * Draw a filled ellipse
579 * @link http://www.php.net/manual/en/function.imagefilledellipse.php
580 * @param image resource
581 * @param cx int <p>
582 * x-coordinate of the center.
583 * </p>
584 * @param cy int <p>
585 * y-coordinate of the center.
586 * </p>
587 * @param width int <p>
588 * The ellipse width.
589 * </p>
590 * @param height int <p>
591 * The ellipse height.
592 * </p>
593 * @param color int <p>
594 * The fill color. A color identifier created with
595 * imagecolorallocate.
596 * </p>
597 * @return bool Returns true on success, false on failure.
598 */
599 function imagefilledellipse ($image, $cx, $cy, $width, $height, $color) {}
600
601 /**
602 * Set the blending mode for an image
603 * @link http://www.php.net/manual/en/function.imagealphablending.php
604 * @param image resource
605 * @param blendmode bool <p>
606 * Whether to enable the blending mode or not. On true color images
607 * the default value is true otherwise the default value is false
608 * </p>
609 * @return bool Returns true on success, false on failure.
610 */
611 function imagealphablending ($image, $blendmode) {}
612
613 /**
614 * Set the flag to save full alpha channel information (as opposed to single-color transparency) when saving PNG images
615 * @link http://www.php.net/manual/en/function.imagesavealpha.php
616 * @param image resource
617 * @param saveflag bool <p>
618 * Whether to save the alpha channel or not. Default to false.
619 * </p>
620 * @return bool Returns true on success, false on failure.
621 */
622 function imagesavealpha ($image, $saveflag) {}
623
624 /**
625 * Allocate a color for an image
626 * @link http://www.php.net/manual/en/function.imagecolorallocatealpha.php
627 * @param image resource
628 * @param red int <p>&gd.value.red;</p>
629 * @param green int <p>&gd.value.green;</p>
630 * @param blue int <p>&gd.value.blue;</p>
631 * @param alpha int <p>
632 * A value between 0 and 127.
633 * 0 indicates completely opaque while
634 * 127 indicates completely transparent.
635 * </p>
636 * @return int A color identifier or false if the allocation failed.
637 */
638 function imagecolorallocatealpha ($image, $red, $green, $blue, $alpha) {}
639
640 /**
641 * Get the index of the specified color + alpha or its closest possible alternative
642 * @link http://www.php.net/manual/en/function.imagecolorresolvealpha.php
643 * @param image resource
644 * @param red int <p>&gd.value.red;</p>
645 * @param green int <p>&gd.value.green;</p>
646 * @param blue int <p>&gd.value.blue;</p>
647 * @param alpha int <p>
648 * A value between 0 and 127.
649 * 0 indicates completely opaque while
650 * 127 indicates completely transparent.
651 * </p>
652 * @return int a color index.
653 */
654 function imagecolorresolvealpha ($image, $red, $green, $blue, $alpha) {}
655
656 /**
657 * Get the index of the closest color to the specified color + alpha
658 * @link http://www.php.net/manual/en/function.imagecolorclosestalpha.php
659 * @param image resource
660 * @param red int <p>&gd.value.red;</p>
661 * @param green int <p>&gd.value.green;</p>
662 * @param blue int <p>&gd.value.blue;</p>
663 * @param alpha int <p>
664 * A value between 0 and 127.
665 * 0 indicates completely opaque while
666 * 127 indicates completely transparent.
667 * </p>
668 * @return int the index of the closest color in the palette.
669 */
670 function imagecolorclosestalpha ($image, $red, $green, $blue, $alpha) {}
671
672 /**
673 * Get the index of the specified color + alpha
674 * @link http://www.php.net/manual/en/function.imagecolorexactalpha.php
675 * @param image resource
676 * @param red int <p>&gd.value.red;</p>
677 * @param green int <p>&gd.value.green;</p>
678 * @param blue int <p>&gd.value.blue;</p>
679 * @param alpha int <p>
680 * A value between 0 and 127.
681 * 0 indicates completely opaque while
682 * 127 indicates completely transparent.
683 * </p>
684 * @return int the index of the specified color+alpha in the palette of the
685 * image, or -1 if the color does not exist in the image's palette.
686 */
687 function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {}
688
689 /**
690 * Copy and resize part of an image with resampling
691 * @link http://www.php.net/manual/en/function.imagecopyresampled.php
692 * @param dst_image resource <p>&gd.image.destination;</p>
693 * @param src_image resource <p>&gd.image.source;</p>
694 * @param dst_x int <p>
695 * x-coordinate of destination point.
696 * </p>
697 * @param dst_y int <p>
698 * y-coordinate of destination point.
699 * </p>
700 * @param src_x int <p>
701 * x-coordinate of source point.
702 * </p>
703 * @param src_y int <p>
704 * y-coordinate of source point.
705 * </p>
706 * @param dst_w int <p>
707 * Destination width.
708 * </p>
709 * @param dst_h int <p>
710 * Destination height.
711 * </p>
712 * @param src_w int <p>&gd.source.width;</p>
713 * @param src_h int <p>&gd.source.height;</p>
714 * @return bool Returns true on success, false on failure.
715 */
716 function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
717
718 /**
719 * Rotate an image with a given angle
720 * @link http://www.php.net/manual/en/function.imagerotate.php
721 * @param image resource
722 * @param angle float <p>
723 * Rotation angle, in degrees. The rotation angle is interpreted as the
724 * number of degrees to rotate the image anticlockwise.
725 * </p>
726 * @param bgd_color int <p>
727 * Specifies the color of the uncovered zone after the rotation
728 * </p>
729 * @param ignore_transparent int[optional] <p>
730 * If set and non-zero, transparent colors are ignored (otherwise kept).
731 * </p>
732 * @return resource an image resource for the rotated image, &return.falseforfailure;.
733 */
734 function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {}
735
736 /**
737 * Flips an image using a given mode
738 * @link http://www.php.net/manual/en/function.imageflip.php
739 * @param image resource
740 * @param mode int <p>
741 * Flip mode, this can be one of the IMG_FLIP_* constants:
742 * </p>
743 * <p>
744 *
745 *
746 *
747 * <tr valign="top">
748 * <td>Constant</td>
749 * <td>Meaning</td>
750 * </tr>
751 *
752 *
753 * <tr valign="top">
754 * <td>IMG_FLIP_HORIZONTAL</td>
755 * <td>
756 * Flips the image horizontally.
757 * </td>
758 * </tr>
759 * <tr valign="top">
760 * <td>IMG_FLIP_VERTICAL</td>
761 * <td>
762 * Flips the image vertically.
763 * </td>
764 * </tr>
765 * <tr valign="top">
766 * <td>IMG_FLIP_BOTH</td>
767 * <td>
768 * Flips the image both horizontally and vertically.
769 * </td>
770 * </tr>
771 *
772 *
773 *
774 * </p>
775 * @return bool Returns true on success, false on failure.
776 */
777 function imageflip ($image, $mode) {}
778
779 /**
780 * Should antialias functions be used or not
781 * @link http://www.php.net/manual/en/function.imageantialias.php
782 * @param image resource
783 * @param enabled bool <p>
784 * Whether to enable antialiasing or not.
785 * </p>
786 * @return bool Returns true on success, false on failure.
787 */
788 function imageantialias ($image, $enabled) {}
789
790 /**
791 * Crop an image using the given coordinates and size, x, y, width and height
792 * @link http://www.php.net/manual/en/function.imagecrop.php
793 * @param image resource
794 * @param rect array <p>
795 * Array with keys "x", "y", "width" and "height".
796 * </p>
797 * @return resource Return cropped image resource on success&return.falseforfailure;.
798 */
799 function imagecrop ($image, array $rect) {}
800
801 /**
802 * Crop an image automatically using one of the available modes
803 * @link http://www.php.net/manual/en/function.imagecropauto.php
804 * @param image resource
805 * @param mode int[optional] <p>
806 * One of IMG_CROP_* constants.
807 * </p>
808 * @param threshold float[optional] <p>
809 * Used in IMG_CROP_THRESHOLD mode.
810 * </p>
811 * @param color int[optional] <p>
812 * Used in IMG_CROP_THRESHOLD mode.
813 * </p>
814 * @return resource Return cropped image resource on success&return.falseforfailure;.
815 */
816 function imagecropauto ($image, $mode = null, $threshold = null, $color = null) {}
817
818 /**
819 * Scale an image using the given new width and height
820 * @link http://www.php.net/manual/en/function.imagescale.php
821 * @param image resource
822 * @param new_width int <p>
823 *
824 * </p>
825 * @param new_height int[optional] <p>
826 *
827 * </p>
828 * @param mode int[optional] <p>
829 * One of IMG_NEAREST_NEIGHBOUR,
830 * IMG_BILINEAR_FIXED,
831 * IMG_BICUBIC,
832 * IMG_BICUBIC_FIXED or anything else (will use two
833 * pass).
834 * </p>
835 * @return resource Return scaled image resource on success&return.falseforfailure;.
836 */
837 function imagescale ($image, $new_width, $new_height = null, $mode = null) {}
838
839 /**
840 * Return an image containing the affine transformed src image, using an optional clipping area
841 * @link http://www.php.net/manual/en/function.imageaffine.php
842 * @param image resource
843 * @param affine array <p>
844 * Array with keys 0 to 5.
845 * </p>
846 * @param clip array[optional] <p>
847 * Array with keys "x", "y", "width" and "height".
848 * </p>
849 * @return resource Return affined image resource on success&return.falseforfailure;.
850 */
851 function imageaffine ($image, array $affine, array $clip = null) {}
852
853 /**
854 * Concat two matrices (as in doing many ops in one go)
855 * @link http://www.php.net/manual/en/function.imageaffinematrixconcat.php
856 * @param m1 array <p>
857 * Array with keys 0 to 5.
858 * </p>
859 * @param m2 array <p>
860 * Array with keys 0 to 5.
861 * </p>
862 * @return array Array with keys 0 to 5 and float values&return.falseforfailure;.
863 */
864 function imageaffinematrixconcat (array $m1, array $m2) {}
865
866 /**
867 * Return an image containing the affine tramsformed src image, using an optional clipping area
868 * @link http://www.php.net/manual/en/function.imageaffinematrixget.php
869 * @param type int <p>
870 * One of IMG_AFFINE_* constants.
871 * </p>
872 * @param options mixed[optional] <p>
873 *
874 * </p>
875 * @return array Array with keys 0 to 5 and float values&return.falseforfailure;.
876 */
877 function imageaffinematrixget ($type, $options = null) {}
878
879 /**
880 * Set the interpolation method
881 * @link http://www.php.net/manual/en/function.imagesetinterpolation.php
882 * @param image resource
883 * @param method int[optional] <p>
884 * The interpolation method, which can be one of the following:
885 *
886 *
887 *
888 * IMG_BELL: Bell filter.
889 * @return bool Returns true on success, false on failure.
890 */
891 function imagesetinterpolation ($image, $method = null) {}
892
893 /**
894 * Set the tile image for filling
895 * @link http://www.php.net/manual/en/function.imagesettile.php
896 * @param image resource
897 * @param tile resource <p>
898 * The image resource to be used as a tile.
899 * </p>
900 * @return bool Returns true on success, false on failure.
901 */
902 function imagesettile ($image, $tile) {}
903
904 /**
905 * Set the brush image for line drawing
906 * @link http://www.php.net/manual/en/function.imagesetbrush.php
907 * @param image resource
908 * @param brush resource <p>
909 * An image resource.
910 * </p>
911 * @return bool Returns true on success, false on failure.
912 */
913 function imagesetbrush ($image, $brush) {}
914
915 /**
916 * Set the style for line drawing
917 * @link http://www.php.net/manual/en/function.imagesetstyle.php
918 * @param image resource
919 * @param style array <p>
920 * An array of pixel colors. You can use the
921 * IMG_COLOR_TRANSPARENT constant to add a
922 * transparent pixel.
923 * </p>
924 * @return bool Returns true on success, false on failure.
925 */
926 function imagesetstyle ($image, array $style) {}
927
928 /**
929 * &gd.image.new;
930 * @link http://www.php.net/manual/en/function.imagecreatefrompng.php
931 * @param filename string <p>
932 * Path to the PNG image.
933 * </p>
934 * @return resource &gd.return.identifier;
935 */
936 function imagecreatefrompng ($filename) {}
937
938 /**
939 * &gd.image.new;
940 * @link http://www.php.net/manual/en/function.imagecreatefromgif.php
941 * @param filename string <p>
942 * Path to the GIF image.
943 * </p>
944 * @return resource &gd.return.identifier;
945 */
946 function imagecreatefromgif ($filename) {}
947
948 /**
949 * &gd.image.new;
950 * @link http://www.php.net/manual/en/function.imagecreatefromjpeg.php
951 * @param filename string <p>
952 * Path to the JPEG image.
953 * </p>
954 * @return resource &gd.return.identifier;
955 */
956 function imagecreatefromjpeg ($filename) {}
957
958 /**
959 * &gd.image.new;
960 * @link http://www.php.net/manual/en/function.imagecreatefromwbmp.php
961 * @param filename string <p>
962 * Path to the WBMP image.
963 * </p>
964 * @return resource &gd.return.identifier;
965 */
966 function imagecreatefromwbmp ($filename) {}
967
968 /**
969 * &gd.image.new;
970 * @link http://www.php.net/manual/en/function.imagecreatefromxbm.php
971 * @param filename string <p>
972 * Path to the XBM image.
973 * </p>
974 * @return resource &gd.return.identifier;
975 */
976 function imagecreatefromxbm ($filename) {}
977
978 /**
979 * Create a new image from GD file or URL
980 * @link http://www.php.net/manual/en/function.imagecreatefromgd.php
981 * @param filename string <p>
982 * Path to the GD file.
983 * </p>
984 * @return resource &gd.return.identifier;
985 */
986 function imagecreatefromgd ($filename) {}
987
988 /**
989 * Create a new image from GD2 file or URL
990 * @link http://www.php.net/manual/en/function.imagecreatefromgd2.php
991 * @param filename string <p>
992 * Path to the GD2 image.
993 * </p>
994 * @return resource &gd.return.identifier;
995 */
996 function imagecreatefromgd2 ($filename) {}
997
998 /**
999 * Create a new image from a given part of GD2 file or URL
1000 * @link http://www.php.net/manual/en/function.imagecreatefromgd2part.php
1001 * @param filename string <p>
1002 * Path to the GD2 image.
1003 * </p>
1004 * @param srcX int <p>
1005 * x-coordinate of source point.
1006 * </p>
1007 * @param srcY int <p>
1008 * y-coordinate of source point.
1009 * </p>
1010 * @param width int <p>&gd.source.width;</p>
1011 * @param height int <p>&gd.source.height;</p>
1012 * @return resource &gd.return.identifier;
1013 */
1014 function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
1015
1016 /**
1017 * Output a PNG image to either the browser or a file
1018 * @link http://www.php.net/manual/en/function.imagepng.php
1019 * @param image resource
1020 * @param filename string[optional] <p>&gd.image.path;</p>
1021 *
1022 * <p>
1023 * &null; is invalid if the quality and
1024 * filters arguments are not used.
1025 * </p>
1026 * @param quality int[optional] <p>
1027 * Compression level: from 0 (no compression) to 9.
1028 * </p>
1029 * @param filters int[optional] <p>
1030 * Allows reducing the PNG file size. It is a bitmask field which may be
1031 * set to any combination of the PNG_FILTER_XXX
1032 * constants. PNG_NO_FILTER or
1033 * PNG_ALL_FILTERS may also be used to respectively
1034 * disable or activate all filters.
1035 * </p>
1036 * @return bool Returns true on success, false on failure.
1037 */
1038 function imagepng ($image, $filename = null, $quality = null, $filters = null) {}
1039
1040 /**
1041 * &gd.image.output;
1042 * @link http://www.php.net/manual/en/function.imagegif.php
1043 * @param image resource
1044 * @param filename string[optional] <p>&gd.image.path;</p>
1045 * @return bool Returns true on success, false on failure.
1046 */
1047 function imagegif ($image, $filename = null) {}
1048
1049 /**
1050 * &gd.image.output;
1051 * @link http://www.php.net/manual/en/function.imagejpeg.php
1052 * @param image resource
1053 * @param filename string[optional] <p>&gd.image.path;</p>
1054 * <p>
1055 * To skip this argument in order to provide the
1056 * quality parameter, use &null;.
1057 * </p>
1058 * @param quality int[optional] <p>
1059 * quality is optional, and ranges from 0 (worst
1060 * quality, smaller file) to 100 (best quality, biggest file). The
1061 * default is the default IJG quality value (about 75).
1062 * </p>
1063 * @return bool Returns true on success, false on failure.
1064 */
1065 function imagejpeg ($image, $filename = null, $quality = null) {}
1066
1067 /**
1068 * &gd.image.output;
1069 * @link http://www.php.net/manual/en/function.imagewbmp.php
1070 * @param image resource
1071 * @param filename string[optional] <p>&gd.image.path;</p>
1072 * @param foreground int[optional] <p>
1073 * You can set the foreground color with this parameter by setting an
1074 * identifier obtained from imagecolorallocate.
1075 * The default foreground color is black.
1076 * </p>
1077 * @return bool Returns true on success, false on failure.
1078 */
1079 function imagewbmp ($image, $filename = null, $foreground = null) {}
1080
1081 /**
1082 * Output GD image to browser or file
1083 * @link http://www.php.net/manual/en/function.imagegd.php
1084 * @param image resource
1085 * @param filename string[optional] <p>&gd.image.path;</p>
1086 * @return bool Returns true on success, false on failure.
1087 */
1088 function imagegd ($image, $filename = null) {}
1089
1090 /**
1091 * Output GD2 image to browser or file
1092 * @link http://www.php.net/manual/en/function.imagegd2.php
1093 * @param image resource
1094 * @param filename string[optional] <p>&gd.image.path;</p>
1095 * @param chunk_size int[optional] <p>
1096 * Chunk size.
1097 * </p>
1098 * @param type int[optional] <p>
1099 * Either IMG_GD2_RAW or
1100 * IMG_GD2_COMPRESSED. Default is
1101 * IMG_GD2_RAW.
1102 * </p>
1103 * @return bool Returns true on success, false on failure.
1104 */
1105 function imagegd2 ($image, $filename = null, $chunk_size = null, $type = null) {}
1106
1107 /**
1108 * Destroy an image
1109 * @link http://www.php.net/manual/en/function.imagedestroy.php
1110 * @param image resource
1111 * @return bool Returns true on success, false on failure.
1112 */
1113 function imagedestroy ($image) {}
1114
1115 /**
1116 * Apply a gamma correction to a GD image
1117 * @link http://www.php.net/manual/en/function.imagegammacorrect.php
1118 * @param image resource
1119 * @param inputgamma float <p>
1120 * The input gamma.
1121 * </p>
1122 * @param outputgamma float <p>
1123 * The output gamma.
1124 * </p>
1125 * @return bool Returns true on success, false on failure.
1126 */
1127 function imagegammacorrect ($image, $inputgamma, $outputgamma) {}
1128
1129 /**
1130 * Flood fill
1131 * @link http://www.php.net/manual/en/function.imagefill.php
1132 * @param image resource
1133 * @param x int <p>
1134 * x-coordinate of start point.
1135 * </p>
1136 * @param y int <p>
1137 * y-coordinate of start point.
1138 * </p>
1139 * @param color int <p>
1140 * The fill color. A color identifier created with
1141 * imagecolorallocate.
1142 * </p>
1143 * @return bool Returns true on success, false on failure.
1144 */
1145 function imagefill ($image, $x, $y, $color) {}
1146
1147 /**
1148 * Draw a filled polygon
1149 * @link http://www.php.net/manual/en/function.imagefilledpolygon.php
1150 * @param image resource
1151 * @param points array <p>
1152 * An array containing the x and y
1153 * coordinates of the polygons vertices consecutively.
1154 * </p>
1155 * @param num_points int <p>
1156 * Total number of vertices, which must be at least 3.
1157 * </p>
1158 * @param color int <p>
1159 * A color identifier created with
1160 * imagecolorallocate.
1161 * </p>
1162 * @return bool Returns true on success, false on failure.
1163 */
1164 function imagefilledpolygon ($image, array $points, $num_points, $color) {}
1165
1166 /**
1167 * Draw a filled rectangle
1168 * @link http://www.php.net/manual/en/function.imagefilledrectangle.php
1169 * @param image resource
1170 * @param x1 int <p>
1171 * x-coordinate for point 1.
1172 * </p>
1173 * @param y1 int <p>
1174 * y-coordinate for point 1.
1175 * </p>
1176 * @param x2 int <p>
1177 * x-coordinate for point 2.
1178 * </p>
1179 * @param y2 int <p>
1180 * y-coordinate for point 2.
1181 * </p>
1182 * @param color int <p>
1183 * The fill color. A color identifier created with
1184 * imagecolorallocate.
1185 * </p>
1186 * @return bool Returns true on success, false on failure.
1187 */
1188 function imagefilledrectangle ($image, $x1, $y1, $x2, $y2, $color) {}
1189
1190 /**
1191 * Flood fill to specific color
1192 * @link http://www.php.net/manual/en/function.imagefilltoborder.php
1193 * @param image resource
1194 * @param x int <p>
1195 * x-coordinate of start.
1196 * </p>
1197 * @param y int <p>
1198 * y-coordinate of start.
1199 * </p>
1200 * @param border int <p>
1201 * The border color. A color identifier created with
1202 * imagecolorallocate.
1203 * </p>
1204 * @param color int <p>
1205 * The fill color. A color identifier created with
1206 * imagecolorallocate.
1207 * </p>
1208 * @return bool Returns true on success, false on failure.
1209 */
1210 function imagefilltoborder ($image, $x, $y, $border, $color) {}
1211
1212 /**
1213 * Get font width
1214 * @link http://www.php.net/manual/en/function.imagefontwidth.php
1215 * @param font int
1216 * @return int the pixel width of the font.
1217 */
1218 function imagefontwidth ($font) {}
1219
1220 /**
1221 * Get font height
1222 * @link http://www.php.net/manual/en/function.imagefontheight.php
1223 * @param font int
1224 * @return int the pixel height of the font.
1225 */
1226 function imagefontheight ($font) {}
1227
1228 /**
1229 * Enable or disable interlace
1230 * @link http://www.php.net/manual/en/function.imageinterlace.php
1231 * @param image resource
1232 * @param interlace int[optional] <p>
1233 * If non-zero, the image will be interlaced, else the interlace bit is
1234 * turned off.
1235 * </p>
1236 * @return int 1 if the interlace bit is set for the image, 0 otherwise.
1237 */
1238 function imageinterlace ($image, $interlace = null) {}
1239
1240 /**
1241 * Draw a line
1242 * @link http://www.php.net/manual/en/function.imageline.php
1243 * @param image resource
1244 * @param x1 int <p>
1245 * x-coordinate for first point.
1246 * </p>
1247 * @param y1 int <p>
1248 * y-coordinate for first point.
1249 * </p>
1250 * @param x2 int <p>
1251 * x-coordinate for second point.
1252 * </p>
1253 * @param y2 int <p>
1254 * y-coordinate for second point.
1255 * </p>
1256 * @param color int <p>
1257 * The line color. A color identifier created with
1258 * imagecolorallocate.
1259 * </p>
1260 * @return bool Returns true on success, false on failure.
1261 */
1262 function imageline ($image, $x1, $y1, $x2, $y2, $color) {}
1263
1264 /**
1265 * Load a new font
1266 * @link http://www.php.net/manual/en/function.imageloadfont.php
1267 * @param file string <p>
1268 * The font file format is currently binary and architecture
1269 * dependent. This means you should generate the font files on the
1270 * same type of CPU as the machine you are running PHP on.
1271 * </p>
1272 * <p>
1273 * <table>
1274 * Font file format
1275 *
1276 *
1277 * <tr valign="top">
1278 * <td>byte position</td>
1279 * <td>C data type</td>
1280 * <td>description</td>
1281 * </tr>
1282 *
1283 *
1284 * <tr valign="top">
1285 * <td>byte 0-3</td>
1286 * <td>int</td>
1287 * <td>number of characters in the font</td>
1288 * </tr>
1289 * <tr valign="top">
1290 * <td>byte 4-7</td>
1291 * <td>int</td>
1292 * <td>
1293 * value of first character in the font (often 32 for space)
1294 * </td>
1295 * </tr>
1296 * <tr valign="top">
1297 * <td>byte 8-11</td>
1298 * <td>int</td>
1299 * <td>pixel width of each character</td>
1300 * </tr>
1301 * <tr valign="top">
1302 * <td>byte 12-15</td>
1303 * <td>int</td>
1304 * <td>pixel height of each character</td>
1305 * </tr>
1306 * <tr valign="top">
1307 * <td>byte 16-</td>
1308 * <td>char</td>
1309 * <td>
1310 * array with character data, one byte per pixel in each
1311 * character, for a total of (nchars*width*height) bytes.
1312 * </td>
1313 * </tr>
1314 *
1315 *
1316 * </table>
1317 * </p>
1318 * @return int The font identifier which is always bigger than 5 to avoid conflicts with
1319 * built-in fonts or false on errors.
1320 */
1321 function imageloadfont ($file) {}
1322
1323 /**
1324 * Draws a polygon
1325 * @link http://www.php.net/manual/en/function.imagepolygon.php
1326 * @param image resource
1327 * @param points array <p>
1328 * An array containing the polygon's vertices, e.g.:
1329 *
1330 *
1331 *
1332 * <tr valign="top">
1333 * <td>points[0]</td>
1334 * <td>= x0</td>
1335 * </tr>
1336 * <tr valign="top">
1337 * <td>points[1]</td>
1338 * <td>= y0</td>
1339 * </tr>
1340 * <tr valign="top">
1341 * <td>points[2]</td>
1342 * <td>= x1</td>
1343 * </tr>
1344 * <tr valign="top">
1345 * <td>points[3]</td>
1346 * <td>= y1</td>
1347 * </tr>
1348 *
1349 *
1350 *
1351 * </p>
1352 * @param num_points int <p>
1353 * Total number of points (vertices).
1354 * </p>
1355 * @param color int <p>
1356 * A color identifier created with
1357 * imagecolorallocate.
1358 * </p>
1359 * @return bool Returns true on success, false on failure.
1360 */
1361 function imagepolygon ($image, array $points, $num_points, $color) {}
1362
1363 /**
1364 * Draw a rectangle
1365 * @link http://www.php.net/manual/en/function.imagerectangle.php
1366 * @param image resource
1367 * @param x1 int <p>
1368 * Upper left x coordinate.
1369 * </p>
1370 * @param y1 int <p>
1371 * Upper left y coordinate
1372 * 0, 0 is the top left corner of the image.
1373 * </p>
1374 * @param x2 int <p>
1375 * Bottom right x coordinate.
1376 * </p>
1377 * @param y2 int <p>
1378 * Bottom right y coordinate.
1379 * </p>
1380 * @param color int <p>
1381 * A color identifier created with
1382 * imagecolorallocate.
1383 * </p>
1384 * @return bool Returns true on success, false on failure.
1385 */
1386 function imagerectangle ($image, $x1, $y1, $x2, $y2, $color) {}
1387
1388 /**
1389 * Set a single pixel
1390 * @link http://www.php.net/manual/en/function.imagesetpixel.php
1391 * @param image resource
1392 * @param x int <p>
1393 * x-coordinate.
1394 * </p>
1395 * @param y int <p>
1396 * y-coordinate.
1397 * </p>
1398 * @param color int <p>
1399 * A color identifier created with
1400 * imagecolorallocate.
1401 * </p>
1402 * @return bool Returns true on success, false on failure.
1403 */
1404 function imagesetpixel ($image, $x, $y, $color) {}
1405
1406 /**
1407 * Draw a string horizontally
1408 * @link http://www.php.net/manual/en/function.imagestring.php
1409 * @param image resource
1410 * @param font int
1411 * @param x int <p>
1412 * x-coordinate of the upper left corner.
1413 * </p>
1414 * @param y int <p>
1415 * y-coordinate of the upper left corner.
1416 * </p>
1417 * @param string string <p>
1418 * The string to be written.
1419 * </p>
1420 * @param color int <p>
1421 * A color identifier created with
1422 * imagecolorallocate.
1423 * </p>
1424 * @return bool Returns true on success, false on failure.
1425 */
1426 function imagestring ($image, $font, $x, $y, $string, $color) {}
1427
1428 /**
1429 * Draw a string vertically
1430 * @link http://www.php.net/manual/en/function.imagestringup.php
1431 * @param image resource
1432 * @param font int
1433 * @param x int <p>
1434 * x-coordinate of the bottom left corner.
1435 * </p>
1436 * @param y int <p>
1437 * y-coordinate of the bottom left corner.
1438 * </p>
1439 * @param string string <p>
1440 * The string to be written.
1441 * </p>
1442 * @param color int <p>
1443 * A color identifier created with
1444 * imagecolorallocate.
1445 * </p>
1446 * @return bool Returns true on success, false on failure.
1447 */
1448 function imagestringup ($image, $font, $x, $y, $string, $color) {}
1449
1450 /**
1451 * Get image width
1452 * @link http://www.php.net/manual/en/function.imagesx.php
1453 * @param image resource
1454 * @return int Return the width of the image or false on
1455 * errors.
1456 */
1457 function imagesx ($image) {}
1458
1459 /**
1460 * Get image height
1461 * @link http://www.php.net/manual/en/function.imagesy.php
1462 * @param image resource
1463 * @return int Return the height of the image or false on
1464 * errors.
1465 */
1466 function imagesy ($image) {}
1467
1468 /**
1469 * Draw a dashed line
1470 * @link http://www.php.net/manual/en/function.imagedashedline.php
1471 * @param image resource
1472 * @param x1 int <p>
1473 * Upper left x coordinate.
1474 * </p>
1475 * @param y1 int <p>
1476 * Upper left y coordinate 0, 0 is the top left corner of the image.
1477 * </p>
1478 * @param x2 int <p>
1479 * Bottom right x coordinate.
1480 * </p>
1481 * @param y2 int <p>
1482 * Bottom right y coordinate.
1483 * </p>
1484 * @param color int <p>
1485 * The fill color. A color identifier created with
1486 * imagecolorallocate.
1487 * </p>
1488 * @return bool Always returns true
1489 */
1490 function imagedashedline ($image, $x1, $y1, $x2, $y2, $color) {}
1491
1492 /**
1493 * Give the bounding box of a text using TrueType fonts
1494 * @link http://www.php.net/manual/en/function.imagettfbbox.php
1495 * @param size float <p>
1496 * The font size.
1497 *
1498 *
1499 * In GD 1, this is measured in pixels. In GD 2, this is measured in
1500 * points.
1501 *
1502 *
1503 * </p>
1504 * @param angle float <p>
1505 * Angle in degrees in which text will be measured.
1506 * </p>
1507 * @param fontfile string <p>
1508 * The name of the TrueType font file (can be a URL). Depending on
1509 * which version of the GD library that PHP is using, it may attempt to
1510 * search for files that do not begin with a leading '/' by appending
1511 * '.ttf' to the filename and searching along a library-defined font path.
1512 * </p>
1513 * @param text string <p>
1514 * The string to be measured.
1515 * </p>
1516 * @return array imagettfbbox returns an array with 8
1517 * elements representing four points making the bounding box of the
1518 * text on success and false on error.
1519 *
1520 *
1521 *
1522 * <tr valign="top">
1523 * <td>key</td>
1524 * <td>contents</td>
1525 * </tr>
1526 *
1527 *
1528 * <tr valign="top">
1529 * <td>0</td>
1530 * <td>lower left corner, X position</td>
1531 * </tr>
1532 * <tr valign="top">
1533 * <td>1</td>
1534 * <td>lower left corner, Y position</td>
1535 * </tr>
1536 * <tr valign="top">
1537 * <td>2</td>
1538 * <td>lower right corner, X position</td>
1539 * </tr>
1540 * <tr valign="top">
1541 * <td>3</td>
1542 * <td>lower right corner, Y position</td>
1543 * </tr>
1544 * <tr valign="top">
1545 * <td>4</td>
1546 * <td>upper right corner, X position</td>
1547 * </tr>
1548 * <tr valign="top">
1549 * <td>5</td>
1550 * <td>upper right corner, Y position</td>
1551 * </tr>
1552 * <tr valign="top">
1553 * <td>6</td>
1554 * <td>upper left corner, X position</td>
1555 * </tr>
1556 * <tr valign="top">
1557 * <td>7</td>
1558 * <td>upper left corner, Y position</td>
1559 * </tr>
1560 *
1561 *
1562 *
1563 * </p>
1564 * <p>
1565 * The points are relative to the text regardless of the
1566 * angle, so "upper left" means in the top left-hand
1567 * corner seeing the text horizontally.
1568 */
1569 function imagettfbbox ($size, $angle, $fontfile, $text) {}
1570
1571 /**
1572 * Write text to the image using TrueType fonts
1573 * @link http://www.php.net/manual/en/function.imagettftext.php
1574 * @param image resource
1575 * @param size float <p>&gd.font.size;</p>
1576 * @param angle float <p>
1577 * The angle in degrees, with 0 degrees being left-to-right reading text.
1578 * Higher values represent a counter-clockwise rotation. For example, a
1579 * value of 90 would result in bottom-to-top reading text.
1580 * </p>
1581 * @param x int <p>
1582 * The coordinates given by x and
1583 * y will define the basepoint of the first
1584 * character (roughly the lower-left corner of the character). This
1585 * is different from the imagestring, where
1586 * x and y define the
1587 * upper-left corner of the first character. For example, "top left"
1588 * is 0, 0.
1589 * </p>
1590 * @param y int <p>
1591 * The y-ordinate. This sets the position of the fonts baseline, not the
1592 * very bottom of the character.
1593 * </p>
1594 * @param color int <p>
1595 * The color index. Using the negative of a color index has the effect of
1596 * turning off antialiasing. See imagecolorallocate.
1597 * </p>
1598 * @param fontfile string <p>
1599 * The path to the TrueType font you wish to use.
1600 * </p>
1601 * <p>
1602 * Depending on which version of the GD library PHP is using, when
1603 * fontfile does not begin with a leading
1604 * / then .ttf will be appended
1605 * to the filename and the library will attempt to search for that
1606 * filename along a library-defined font path.
1607 * </p>
1608 * <p>
1609 * When using versions of the GD library lower than 2.0.18, a space character,
1610 * rather than a semicolon, was used as the 'path separator' for different font files.
1611 * Unintentional use of this feature will result in the warning message:
1612 * Warning: Could not find/open font. For these affected versions, the
1613 * only solution is moving the font to a path which does not contain spaces.
1614 * </p>
1615 * <p>
1616 * In many cases where a font resides in the same directory as the script using it
1617 * the following trick will alleviate any include problems.
1618 *
1619 * ]]>
1620 *
1621 * </p>
1622 * @param text string <p>
1623 * The text string in UTF-8 encoding.
1624 * </p>
1625 * <p>
1626 * May include decimal numeric character references (of the form:
1627 * &#8364;) to access characters in a font beyond position 127.
1628 * The hexadecimal format (like &#xA9;) is supported.
1629 * Strings in UTF-8 encoding can be passed directly.
1630 * </p>
1631 * <p>
1632 * Named entities, such as &copy;, are not supported. Consider using
1633 * html_entity_decode
1634 * to decode these named entities into UTF-8 strings.
1635 * </p>
1636 * <p>
1637 * If a character is used in the string which is not supported by the
1638 * font, a hollow rectangle will replace the character.
1639 * </p>
1640 * @return array an array with 8 elements representing four points making the
1641 * bounding box of the text. The order of the points is lower left, lower
1642 * right, upper right, upper left. The points are relative to the text
1643 * regardless of the angle, so "upper left" means in the top left-hand
1644 * corner when you see the text horizontally.
1645 * Returns false on error.
1646 */
1647 function imagettftext ($image, $size, $angle, $x, $y, $color, $fontfile, $text) {}
1648
1649 /**
1650 * Give the bounding box of a text using fonts via freetype2
1651 * @link http://www.php.net/manual/en/function.imageftbbox.php
1652 * @param size float <p>&gd.font.size;</p>
1653 * @param angle float <p>
1654 * Angle in degrees in which text will be
1655 * measured.
1656 * </p>
1657 * @param fontfile string <p>
1658 * The name of the TrueType font file (can be a URL). Depending on
1659 * which version of the GD library that PHP is using, it may attempt to
1660 * search for files that do not begin with a leading '/' by appending
1661 * '.ttf' to the filename and searching along a library-defined font path.
1662 * </p>
1663 * @param text string <p>
1664 * The string to be measured.
1665 * </p>
1666 * @param extrainfo array[optional] <p>
1667 * <table>
1668 * Possible array indexes for extrainfo
1669 *
1670 *
1671 * <tr valign="top">
1672 * <td>Key</td>
1673 * <td>Type</td>
1674 * <td>Meaning</td>
1675 * </tr>
1676 *
1677 *
1678 * <tr valign="top">
1679 * <td>linespacing</td>
1680 * <td>float</td>
1681 * <td>Defines drawing linespacing</td>
1682 * </tr>
1683 *
1684 *
1685 * </table>
1686 * </p>
1687 * @return array imageftbbox returns an array with 8
1688 * elements representing four points making the bounding box of the
1689 * text:
1690 *
1691 *
1692 *
1693 * <tr valign="top">
1694 * <td>0</td>
1695 * <td>lower left corner, X position</td>
1696 * </tr>
1697 * <tr valign="top">
1698 * <td>1</td>
1699 * <td>lower left corner, Y position</td>
1700 * </tr>
1701 * <tr valign="top">
1702 * <td>2</td>
1703 * <td>lower right corner, X position</td>
1704 * </tr>
1705 * <tr valign="top">
1706 * <td>3</td>
1707 * <td>lower right corner, Y position</td>
1708 * </tr>
1709 * <tr valign="top">
1710 * <td>4</td>
1711 * <td>upper right corner, X position</td>
1712 * </tr>
1713 * <tr valign="top">
1714 * <td>5</td>
1715 * <td>upper right corner, Y position</td>
1716 * </tr>
1717 * <tr valign="top">
1718 * <td>6</td>
1719 * <td>upper left corner, X position</td>
1720 * </tr>
1721 * <tr valign="top">
1722 * <td>7</td>
1723 * <td>upper left corner, Y position</td>
1724 * </tr>
1725 *
1726 *
1727 *
1728 * </p>
1729 * <p>
1730 * The points are relative to the text regardless of the
1731 * angle, so "upper left" means in the top left-hand
1732 * corner seeing the text horizontally.
1733 */
1734 function imageftbbox ($size, $angle, $fontfile, $text, array $extrainfo = null) {}
1735
1736 /**
1737 * Write text to the image using fonts using FreeType 2
1738 * @link http://www.php.net/manual/en/function.imagefttext.php
1739 * @param image resource
1740 * @param size float <p>
1741 * The font size to use in points.
1742 * </p>
1743 * @param angle float <p>
1744 * The angle in degrees, with 0 degrees being left-to-right reading text.
1745 * Higher values represent a counter-clockwise rotation. For example, a
1746 * value of 90 would result in bottom-to-top reading text.
1747 * </p>
1748 * @param x int <p>
1749 * The coordinates given by x and
1750 * y will define the basepoint of the first
1751 * character (roughly the lower-left corner of the character). This
1752 * is different from the imagestring, where
1753 * x and y define the
1754 * upper-left corner of the first character. For example, "top left"
1755 * is 0, 0.
1756 * </p>
1757 * @param y int <p>
1758 * The y-ordinate. This sets the position of the fonts baseline, not the
1759 * very bottom of the character.
1760 * </p>
1761 * @param color int <p>
1762 * The index of the desired color for the text, see
1763 * imagecolorexact.
1764 * </p>
1765 * @param fontfile string <p>
1766 * The path to the TrueType font you wish to use.
1767 * </p>
1768 * <p>
1769 * Depending on which version of the GD library PHP is using, when
1770 * fontfile does not begin with a leading
1771 * / then .ttf will be appended
1772 * to the filename and the library will attempt to search for that
1773 * filename along a library-defined font path.
1774 * </p>
1775 * <p>
1776 * When using versions of the GD library lower than 2.0.18, a space character,
1777 * rather than a semicolon, was used as the 'path separator' for different font files.
1778 * Unintentional use of this feature will result in the warning message:
1779 * Warning: Could not find/open font. For these affected versions, the
1780 * only solution is moving the font to a path which does not contain spaces.
1781 * </p>
1782 * <p>
1783 * In many cases where a font resides in the same directory as the script using it
1784 * the following trick will alleviate any include problems.
1785 *
1786 * ]]>
1787 *
1788 * </p>
1789 * @param text string <p>
1790 * Text to be inserted into image.
1791 * </p>
1792 * @param extrainfo array[optional] <p>
1793 * <table>
1794 * Possible array indexes for extrainfo
1795 *
1796 *
1797 * <tr valign="top">
1798 * <td>Key</td>
1799 * <td>Type</td>
1800 * <td>Meaning</td>
1801 * </tr>
1802 *
1803 *
1804 * <tr valign="top">
1805 * <td>linespacing</td>
1806 * <td>float</td>
1807 * <td>Defines drawing linespacing</td>
1808 * </tr>
1809 *
1810 *
1811 * </table>
1812 * </p>
1813 * @return array This function returns an array defining the four points of the box, starting in the lower left and moving counter-clockwise:
1814 *
1815 *
1816 *
1817 * <tr valign="top">
1818 * <td>0</td>
1819 * <td>lower left x-coordinate</td>
1820 * </tr>
1821 * <tr valign="top">
1822 * <td>1</td>
1823 * <td>lower left y-coordinate</td>
1824 * </tr>
1825 * <tr valign="top">
1826 * <td>2</td>
1827 * <td>lower right x-coordinate</td>
1828 * </tr>
1829 * <tr valign="top">
1830 * <td>3</td>
1831 * <td>lower right y-coordinate</td>
1832 * </tr>
1833 * <tr valign="top">
1834 * <td>4</td>
1835 * <td>upper right x-coordinate</td>
1836 * </tr>
1837 * <tr valign="top">
1838 * <td>5</td>
1839 * <td>upper right y-coordinate</td>
1840 * </tr>
1841 * <tr valign="top">
1842 * <td>6</td>
1843 * <td>upper left x-coordinate</td>
1844 * </tr>
1845 * <tr valign="top">
1846 * <td>7</td>
1847 * <td>upper left y-coordinate</td>
1848 * </tr>
1849 */
1850 function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, array $extrainfo = null) {}
1851
1852 /**
1853 * Load a PostScript Type 1 font from file
1854 * @link http://www.php.net/manual/en/function.imagepsloadfont.php
1855 * @param filename string <p>
1856 * Path to the Postscript font file.
1857 * </p>
1858 * @return resource In the case everything went right, a valid font index will be returned and
1859 * can be used for further purposes. Otherwise the function returns false.
1860 */
1861 function imagepsloadfont ($filename) {}
1862
1863 /**
1864 * Free memory used by a PostScript Type 1 font
1865 * @link http://www.php.net/manual/en/function.imagepsfreefont.php
1866 * @param font_index resource <p>
1867 * A font resource, returned by imagepsloadfont.
1868 * </p>
1869 * @return bool Returns true on success, false on failure.
1870 */
1871 function imagepsfreefont ($font_index) {}
1872
1873 /**
1874 * Change the character encoding vector of a font
1875 * @link http://www.php.net/manual/en/function.imagepsencodefont.php
1876 * @param font_index resource <p>
1877 * A font resource, returned by imagepsloadfont.
1878 * </p>
1879 * @param encodingfile string <p>
1880 * The exact format of this file is described in T1libs documentation.
1881 * T1lib comes with two ready-to-use files,
1882 * IsoLatin1.enc and
1883 * IsoLatin2.enc.
1884 * </p>
1885 * @return bool Returns true on success, false on failure.
1886 */
1887 function imagepsencodefont ($font_index, $encodingfile) {}
1888
1889 /**
1890 * Extend or condense a font
1891 * @link http://www.php.net/manual/en/function.imagepsextendfont.php
1892 * @param font_index resource <p>
1893 * A font resource, returned by imagepsloadfont.
1894 * </p>
1895 * @param extend float <p>
1896 * Extension value, must be greater than 0.
1897 * </p>
1898 * @return bool Returns true on success, false on failure.
1899 */
1900 function imagepsextendfont ($font_index, $extend) {}
1901
1902 /**
1903 * Slant a font
1904 * @link http://www.php.net/manual/en/function.imagepsslantfont.php
1905 * @param font_index resource <p>
1906 * A font resource, returned by imagepsloadfont.
1907 * </p>
1908 * @param slant float <p>
1909 * Slant level.
1910 * </p>
1911 * @return bool Returns true on success, false on failure.
1912 */
1913 function imagepsslantfont ($font_index, $slant) {}
1914
1915 /**
1916 * Draws a text over an image using PostScript Type1 fonts
1917 * @link http://www.php.net/manual/en/function.imagepstext.php
1918 * @param image resource
1919 * @param text string <p>
1920 * The text to be written.
1921 * </p>
1922 * @param font_index resource <p>
1923 * A font resource, returned by imagepsloadfont.
1924 * </p>
1925 * @param size int <p>
1926 * size is expressed in pixels.
1927 * </p>
1928 * @param foreground int <p>
1929 * The color in which the text will be painted.
1930 * </p>
1931 * @param background int <p>
1932 * The color to which the text will try to fade in with antialiasing.
1933 * No pixels with the color background are
1934 * actually painted, so the background image does not need to be of solid
1935 * color.
1936 * </p>
1937 * @param x int <p>
1938 * x-coordinate for the lower-left corner of the first character.
1939 * </p>
1940 * @param y int <p>
1941 * y-coordinate for the lower-left corner of the first character.
1942 * </p>
1943 * @param space int[optional] <p>
1944 * Allows you to change the default value of a space in a font. This
1945 * amount is added to the normal value and can also be negative.
1946 * Expressed in character space units, where 1 unit is 1/1000th of an
1947 * em-square.
1948 * </p>
1949 * @param tightness int[optional] <p>
1950 * tightness allows you to control the amount
1951 * of white space between characters. This amount is added to the
1952 * normal character width and can also be negative.
1953 * Expressed in character space units, where 1 unit is 1/1000th of an
1954 * em-square.
1955 * </p>
1956 * @param angle float[optional] <p>
1957 * angle is in degrees.
1958 * </p>
1959 * @param antialias_steps int[optional] <p>
1960 * Allows you to control the number of colours used for antialiasing
1961 * text. Allowed values are 4 and 16. The higher value is recommended
1962 * for text sizes lower than 20, where the effect in text quality is
1963 * quite visible. With bigger sizes, use 4. It's less computationally
1964 * intensive.
1965 * </p>
1966 * @return array This function returns an array containing the following elements:
1967 *
1968 *
1969 *
1970 * <tr valign="top">
1971 * <td>0</td>
1972 * <td>lower left x-coordinate</td>
1973 * </tr>
1974 * <tr valign="top">
1975 * <td>1</td>
1976 * <td>lower left y-coordinate</td>
1977 * </tr>
1978 * <tr valign="top">
1979 * <td>2</td>
1980 * <td>upper right x-coordinate</td>
1981 * </tr>
1982 * <tr valign="top">
1983 * <td>3</td>
1984 * <td>upper right y-coordinate</td>
1985 * </tr>
1986 */
1987 function imagepstext ($image, $text, $font_index, $size, $foreground, $background, $x, $y, $space = null, $tightness = null, $angle = null, $antialias_steps = null) {}
1988
1989 /**
1990 * Give the bounding box of a text rectangle using PostScript Type1 fonts
1991 * @link http://www.php.net/manual/en/function.imagepsbbox.php
1992 * @param text string <p>
1993 * The text to be written.
1994 * </p>
1995 * @param font resource
1996 * @param size int <p>
1997 * size is expressed in pixels.
1998 * </p>
1999 * @return array an array containing the following elements:
2000 *
2001 *
2002 *
2003 * <tr valign="top">
2004 * <td>0</td>
2005 * <td>left x-coordinate</td>
2006 * </tr>
2007 * <tr valign="top">
2008 * <td>1</td>
2009 * <td>upper y-coordinate</td>
2010 * </tr>
2011 * <tr valign="top">
2012 * <td>2</td>
2013 * <td>right x-coordinate</td>
2014 * </tr>
2015 * <tr valign="top">
2016 * <td>3</td>
2017 * <td>lower y-coordinate</td>
2018 * </tr>
2019 */
2020 function imagepsbbox ($text, $font, $size) {}
2021
2022 /**
2023 * Return the image types supported by this PHP build
2024 * @link http://www.php.net/manual/en/function.imagetypes.php
2025 * @return int a bit-field corresponding to the image formats supported by the
2026 * version of GD linked into PHP. The following bits are returned,
2027 * IMG_GIF | IMG_JPG |
2028 * IMG_PNG | IMG_WBMP |
2029 * IMG_XPM.
2030 */
2031 function imagetypes () {}
2032
2033 /**
2034 * Convert JPEG image file to WBMP image file
2035 * @link http://www.php.net/manual/en/function.jpeg2wbmp.php
2036 * @param jpegname string <p>
2037 * Path to JPEG file.
2038 * </p>
2039 * @param wbmpname string <p>
2040 * Path to destination WBMP file.
2041 * </p>
2042 * @param dest_height int <p>
2043 * Destination image height.
2044 * </p>
2045 * @param dest_width int <p>
2046 * Destination image width.
2047 * </p>
2048 * @param threshold int <p>
2049 * Threshold value, between 0 and 8 (inclusive).
2050 * </p>
2051 * @return bool Returns true on success, false on failure.
2052 */
2053 function jpeg2wbmp ($jpegname, $wbmpname, $dest_height, $dest_width, $threshold) {}
2054
2055 /**
2056 * Convert PNG image file to WBMP image file
2057 * @link http://www.php.net/manual/en/function.png2wbmp.php
2058 * @param pngname string <p>
2059 * Path to PNG file.
2060 * </p>
2061 * @param wbmpname string <p>
2062 * Path to destination WBMP file.
2063 * </p>
2064 * @param dest_height int <p>
2065 * Destination image height.
2066 * </p>
2067 * @param dest_width int <p>
2068 * Destination image width.
2069 * </p>
2070 * @param threshold int <p>
2071 * Threshold value, between 0 and 8 (inclusive).
2072 * </p>
2073 * @return bool Returns true on success, false on failure.
2074 */
2075 function png2wbmp ($pngname, $wbmpname, $dest_height, $dest_width, $threshold) {}
2076
2077 /**
2078 * &gd.image.output;
2079 * @link http://www.php.net/manual/en/function.image2wbmp.php
2080 * @param image resource
2081 * @param filename string[optional] <p>
2082 * Path to the saved file. If not given, the raw image stream will be
2083 * output directly.
2084 * </p>
2085 * @param threshold int[optional] <p>
2086 * Threshold value, between 0 and 255 (inclusive).
2087 * </p>
2088 * @return bool Returns true on success, false on failure.
2089 */
2090 function image2wbmp ($image, $filename = null, $threshold = null) {}
2091
2092 /**
2093 * Set the alpha blending flag to use the bundled libgd layering effects
2094 * @link http://www.php.net/manual/en/function.imagelayereffect.php
2095 * @param image resource
2096 * @param effect int <p>
2097 * One of the following constants:
2098 *
2099 *
2100 * IMG_EFFECT_REPLACE
2101 *
2102 *
2103 * Use pixel replacement (equivalent of passing true to
2104 * imagealphablending)
2105 * @return bool Returns true on success, false on failure.
2106 */
2107 function imagelayereffect ($image, $effect) {}
2108
2109 /**
2110 * Output an XBM image to browser or file
2111 * @link http://www.php.net/manual/en/function.imagexbm.php
2112 * @param image resource
2113 * @param filename string <p>&gd.image.path;</p>
2114 * @param foreground int[optional] <p>
2115 * You can set the foreground color with this parameter by setting an
2116 * identifier obtained from imagecolorallocate.
2117 * The default foreground color is black.
2118 * </p>
2119 * @return bool Returns true on success, false on failure.
2120 */
2121 function imagexbm ($image, $filename, $foreground = null) {}
2122
2123 /**
2124 * Makes the colors of the palette version of an image more closely match the true color version
2125 * @link http://www.php.net/manual/en/function.imagecolormatch.php
2126 * @param image1 resource <p>
2127 * A truecolor image link resource.
2128 * </p>
2129 * @param image2 resource <p>
2130 * A palette image link resource pointing to an image that has the same
2131 * size as image1.
2132 * </p>
2133 * @return bool Returns true on success, false on failure.
2134 */
2135 function imagecolormatch ($image1, $image2) {}
2136
2137 /**
2138 * Applies a filter to an image
2139 * @link http://www.php.net/manual/en/function.imagefilter.php
2140 * @param image resource
2141 * @param filtertype int <p>
2142 * filtertype can be one of the following:
2143 *
2144 *
2145 *
2146 * IMG_FILTER_NEGATE: Reverses all colors of
2147 * the image.
2148 * @param arg1 int[optional] <p>
2149 *
2150 *
2151 *
2152 * IMG_FILTER_BRIGHTNESS: Brightness level.
2153 * @param arg2 int[optional] <p>
2154 *
2155 *
2156 *
2157 * IMG_FILTER_COLORIZE: &gd.value.green;
2158 * @param arg3 int[optional] <p>
2159 *
2160 *
2161 *
2162 * IMG_FILTER_COLORIZE: &gd.value.blue;
2163 * @param arg4 int[optional] <p>
2164 *
2165 *
2166 *
2167 * IMG_FILTER_COLORIZE: Alpha channel, A value
2168 * between 0 and 127. 0 indicates completely opaque while 127 indicates
2169 * completely transparent.
2170 * @return bool Returns true on success, false on failure.
2171 */
2172 function imagefilter ($image, $filtertype, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) {}
2173
2174 /**
2175 * Apply a 3x3 convolution matrix, using coefficient and offset
2176 * @link http://www.php.net/manual/en/function.imageconvolution.php
2177 * @param image resource
2178 * @param matrix array <p>
2179 * A 3x3 matrix: an array of three arrays of three floats.
2180 * </p>
2181 * @param div float <p>
2182 * The divisor of the result of the convolution, used for normalization.
2183 * </p>
2184 * @param offset float <p>
2185 * Color offset.
2186 * </p>
2187 * @return bool Returns true on success, false on failure.
2188 */
2189 function imageconvolution ($image, array $matrix, $div, $offset) {}
2190
2191
2192 /**
2193 * Used as a return value by imagetypes
2194 * @link http://www.php.net/manual/en/image.constants.php
2195 */
2196 define ('IMG_GIF', 1);
2197
2198 /**
2199 * Used as a return value by imagetypes
2200 * @link http://www.php.net/manual/en/image.constants.php
2201 */
2202 define ('IMG_JPG', 2);
2203
2204 /**
2205 * Used as a return value by imagetypes
2206 *
2207 *
2208 * <p>
2209 * This constant has the same value as IMG_JPG
2210 * </p>
2211 * @link http://www.php.net/manual/en/image.constants.php
2212 */
2213 define ('IMG_JPEG', 2);
2214
2215 /**
2216 * Used as a return value by imagetypes
2217 * @link http://www.php.net/manual/en/image.constants.php
2218 */
2219 define ('IMG_PNG', 4);
2220
2221 /**
2222 * Used as a return value by imagetypes
2223 * @link http://www.php.net/manual/en/image.constants.php
2224 */
2225 define ('IMG_WBMP', 8);
2226
2227 /**
2228 * Used as a return value by imagetypes
2229 * @link http://www.php.net/manual/en/image.constants.php
2230 */
2231 define ('IMG_XPM', 16);
2232
2233 /**
2234 * Special color option which can be used in stead of color allocated with
2235 * imagecolorallocate or
2236 * imagecolorallocatealpha
2237 * @link http://www.php.net/manual/en/image.constants.php
2238 */
2239 define ('IMG_COLOR_TILED', -5);
2240
2241 /**
2242 * Special color option which can be used in stead of color allocated with
2243 * imagecolorallocate or
2244 * imagecolorallocatealpha
2245 * @link http://www.php.net/manual/en/image.constants.php
2246 */
2247 define ('IMG_COLOR_STYLED', -2);
2248
2249 /**
2250 * Special color option which can be used in stead of color allocated with
2251 * imagecolorallocate or
2252 * imagecolorallocatealpha
2253 * @link http://www.php.net/manual/en/image.constants.php
2254 */
2255 define ('IMG_COLOR_BRUSHED', -3);
2256
2257 /**
2258 * Special color option which can be used in stead of color allocated with
2259 * imagecolorallocate or
2260 * imagecolorallocatealpha
2261 * @link http://www.php.net/manual/en/image.constants.php
2262 */
2263 define ('IMG_COLOR_STYLEDBRUSHED', -4);
2264
2265 /**
2266 * Special color option which can be used in stead of color allocated with
2267 * imagecolorallocate or
2268 * imagecolorallocatealpha
2269 * @link http://www.php.net/manual/en/image.constants.php
2270 */
2271 define ('IMG_COLOR_TRANSPARENT', -6);
2272
2273 /**
2274 * A style constant used by the imagefilledarc function.
2275 *
2276 *
2277 * <p>
2278 * This constant has the same value as IMG_ARC_PIE
2279 * </p>
2280 * @link http://www.php.net/manual/en/image.constants.php
2281 */
2282 define ('IMG_ARC_ROUNDED', 0);
2283
2284 /**
2285 * A style constant used by the imagefilledarc function.
2286 * @link http://www.php.net/manual/en/image.constants.php
2287 */
2288 define ('IMG_ARC_PIE', 0);
2289
2290 /**
2291 * A style constant used by the imagefilledarc function.
2292 * @link http://www.php.net/manual/en/image.constants.php
2293 */
2294 define ('IMG_ARC_CHORD', 1);
2295
2296 /**
2297 * A style constant used by the imagefilledarc function.
2298 * @link http://www.php.net/manual/en/image.constants.php
2299 */
2300 define ('IMG_ARC_NOFILL', 2);
2301
2302 /**
2303 * A style constant used by the imagefilledarc function.
2304 * @link http://www.php.net/manual/en/image.constants.php
2305 */
2306 define ('IMG_ARC_EDGED', 4);
2307
2308 /**
2309 * A type constant used by the imagegd2 function.
2310 * @link http://www.php.net/manual/en/image.constants.php
2311 */
2312 define ('IMG_GD2_RAW', 1);
2313
2314 /**
2315 * A type constant used by the imagegd2 function.
2316 * @link http://www.php.net/manual/en/image.constants.php
2317 */
2318 define ('IMG_GD2_COMPRESSED', 2);
2319
2320 /**
2321 * Used together with imageflip, available as of PHP 5.5.0.
2322 * @link http://www.php.net/manual/en/image.constants.php
2323 */
2324 define ('IMG_FLIP_HORIZONTAL', 1);
2325
2326 /**
2327 * Used together with imageflip, available as of PHP 5.5.0.
2328 * @link http://www.php.net/manual/en/image.constants.php
2329 */
2330 define ('IMG_FLIP_VERTICAL', 2);
2331
2332 /**
2333 * Used together with imageflip, available as of PHP 5.5.0.
2334 * @link http://www.php.net/manual/en/image.constants.php
2335 */
2336 define ('IMG_FLIP_BOTH', 3);
2337
2338 /**
2339 * Alpha blending effect used by the imagelayereffect function.
2340 * @link http://www.php.net/manual/en/image.constants.php
2341 */
2342 define ('IMG_EFFECT_REPLACE', 0);
2343
2344 /**
2345 * Alpha blending effect used by the imagelayereffect function.
2346 * @link http://www.php.net/manual/en/image.constants.php
2347 */
2348 define ('IMG_EFFECT_ALPHABLEND', 1);
2349
2350 /**
2351 * Alpha blending effect used by the imagelayereffect function.
2352 * @link http://www.php.net/manual/en/image.constants.php
2353 */
2354 define ('IMG_EFFECT_NORMAL', 2);
2355
2356 /**
2357 * Alpha blending effect used by the imagelayereffect function.
2358 * @link http://www.php.net/manual/en/image.constants.php
2359 */
2360 define ('IMG_EFFECT_OVERLAY', 3);
2361 define ('IMG_CROP_DEFAULT', 0);
2362 define ('IMG_CROP_TRANSPARENT', 1);
2363 define ('IMG_CROP_BLACK', 2);
2364 define ('IMG_CROP_WHITE', 3);
2365 define ('IMG_CROP_SIDES', 4);
2366 define ('IMG_CROP_THRESHOLD', 5);
2367
2368 /**
2369 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2370 * @link http://www.php.net/manual/en/image.constants.php
2371 */
2372 define ('IMG_BELL', 1);
2373
2374 /**
2375 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2376 * @link http://www.php.net/manual/en/image.constants.php
2377 */
2378 define ('IMG_BESSEL', 2);
2379
2380 /**
2381 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2382 * @link http://www.php.net/manual/en/image.constants.php
2383 */
2384 define ('IMG_BILINEAR_FIXED', 3);
2385
2386 /**
2387 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2388 * @link http://www.php.net/manual/en/image.constants.php
2389 */
2390 define ('IMG_BICUBIC', 4);
2391 define ('IMG_BICUBIC_FIXED', 5);
2392
2393 /**
2394 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2395 * @link http://www.php.net/manual/en/image.constants.php
2396 */
2397 define ('IMG_BLACKMAN', 6);
2398
2399 /**
2400 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2401 * @link http://www.php.net/manual/en/image.constants.php
2402 */
2403 define ('IMG_BOX', 7);
2404
2405 /**
2406 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2407 * @link http://www.php.net/manual/en/image.constants.php
2408 */
2409 define ('IMG_BSPLINE', 8);
2410
2411 /**
2412 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2413 * @link http://www.php.net/manual/en/image.constants.php
2414 */
2415 define ('IMG_CATMULLROM', 9);
2416
2417 /**
2418 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2419 * @link http://www.php.net/manual/en/image.constants.php
2420 */
2421 define ('IMG_GAUSSIAN', 10);
2422
2423 /**
2424 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2425 * @link http://www.php.net/manual/en/image.constants.php
2426 */
2427 define ('IMG_GENERALIZED_CUBIC', 11);
2428
2429 /**
2430 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2431 * @link http://www.php.net/manual/en/image.constants.php
2432 */
2433 define ('IMG_HERMITE', 12);
2434
2435 /**
2436 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2437 * @link http://www.php.net/manual/en/image.constants.php
2438 */
2439 define ('IMG_HAMMING', 13);
2440
2441 /**
2442 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2443 * @link http://www.php.net/manual/en/image.constants.php
2444 */
2445 define ('IMG_HANNING', 14);
2446
2447 /**
2448 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2449 * @link http://www.php.net/manual/en/image.constants.php
2450 */
2451 define ('IMG_MITCHELL', 15);
2452
2453 /**
2454 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2455 * @link http://www.php.net/manual/en/image.constants.php
2456 */
2457 define ('IMG_POWER', 17);
2458
2459 /**
2460 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2461 * @link http://www.php.net/manual/en/image.constants.php
2462 */
2463 define ('IMG_QUADRATIC', 18);
2464
2465 /**
2466 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2467 * @link http://www.php.net/manual/en/image.constants.php
2468 */
2469 define ('IMG_SINC', 19);
2470
2471 /**
2472 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2473 * @link http://www.php.net/manual/en/image.constants.php
2474 */
2475 define ('IMG_NEAREST_NEIGHBOUR', 16);
2476
2477 /**
2478 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2479 * @link http://www.php.net/manual/en/image.constants.php
2480 */
2481 define ('IMG_WEIGHTED4', 21);
2482
2483 /**
2484 * Used together with imagesetinterpolation, available as of PHP 5.5.0.
2485 * @link http://www.php.net/manual/en/image.constants.php
2486 */
2487 define ('IMG_TRIANGLE', 20);
2488 define ('IMG_AFFINE_TRANSLATE', 0);
2489 define ('IMG_AFFINE_SCALE', 1);
2490 define ('IMG_AFFINE_ROTATE', 2);
2491 define ('IMG_AFFINE_SHEAR_HORIZONTAL', 3);
2492 define ('IMG_AFFINE_SHEAR_VERTICAL', 4);
2493
2494 /**
2495 * When the bundled version of GD is used this is 1 otherwise
2496 * its set to 0.
2497 * @link http://www.php.net/manual/en/image.constants.php
2498 */
2499 define ('GD_BUNDLED', 1);
2500
2501 /**
2502 * Special GD filter used by the imagefilter function.
2503 * @link http://www.php.net/manual/en/image.constants.php
2504 */
2505 define ('IMG_FILTER_NEGATE', 0);
2506
2507 /**
2508 * Special GD filter used by the imagefilter function.
2509 * @link http://www.php.net/manual/en/image.constants.php
2510 */
2511 define ('IMG_FILTER_GRAYSCALE', 1);
2512
2513 /**
2514 * Special GD filter used by the imagefilter function.
2515 * @link http://www.php.net/manual/en/image.constants.php
2516 */
2517 define ('IMG_FILTER_BRIGHTNESS', 2);
2518
2519 /**
2520 * Special GD filter used by the imagefilter function.
2521 * @link http://www.php.net/manual/en/image.constants.php
2522 */
2523 define ('IMG_FILTER_CONTRAST', 3);
2524
2525 /**
2526 * Special GD filter used by the imagefilter function.
2527 * @link http://www.php.net/manual/en/image.constants.php
2528 */
2529 define ('IMG_FILTER_COLORIZE', 4);
2530
2531 /**
2532 * Special GD filter used by the imagefilter function.
2533 * @link http://www.php.net/manual/en/image.constants.php
2534 */
2535 define ('IMG_FILTER_EDGEDETECT', 5);
2536
2537 /**
2538 * Special GD filter used by the imagefilter function.
2539 * @link http://www.php.net/manual/en/image.constants.php
2540 */
2541 define ('IMG_FILTER_GAUSSIAN_BLUR', 7);
2542
2543 /**
2544 * Special GD filter used by the imagefilter function.
2545 * @link http://www.php.net/manual/en/image.constants.php
2546 */
2547 define ('IMG_FILTER_SELECTIVE_BLUR', 8);
2548
2549 /**
2550 * Special GD filter used by the imagefilter function.
2551 * @link http://www.php.net/manual/en/image.constants.php
2552 */
2553 define ('IMG_FILTER_EMBOSS', 6);
2554
2555 /**
2556 * Special GD filter used by the imagefilter function.
2557 * @link http://www.php.net/manual/en/image.constants.php
2558 */
2559 define ('IMG_FILTER_MEAN_REMOVAL', 9);
2560
2561 /**
2562 * Special GD filter used by the imagefilter function.
2563 * @link http://www.php.net/manual/en/image.constants.php
2564 */
2565 define ('IMG_FILTER_SMOOTH', 10);
2566
2567 /**
2568 * Special GD filter used by the imagefilter function.
2569 * (Available as of PHP 5.3.0)
2570 * @link http://www.php.net/manual/en/image.constants.php
2571 */
2572 define ('IMG_FILTER_PIXELATE', 11);
2573
2574 /**
2575 * The GD version PHP was compiled against.
2576 * (Available as of PHP 5.2.4)
2577 * @link http://www.php.net/manual/en/image.constants.php
2578 */
2579 define ('GD_VERSION', "2.0.35");
2580
2581 /**
2582 * The GD major version PHP was compiled against.
2583 * (Available as of PHP 5.2.4)
2584 * @link http://www.php.net/manual/en/image.constants.php
2585 */
2586 define ('GD_MAJOR_VERSION', 2);
2587
2588 /**
2589 * The GD minor version PHP was compiled against.
2590 * (Available as of PHP 5.2.4)
2591 * @link http://www.php.net/manual/en/image.constants.php
2592 */
2593 define ('GD_MINOR_VERSION', 0);
2594
2595 /**
2596 * The GD release version PHP was compiled against.
2597 * (Available as of PHP 5.2.4)
2598 * @link http://www.php.net/manual/en/image.constants.php
2599 */
2600 define ('GD_RELEASE_VERSION', 35);
2601
2602 /**
2603 * The GD "extra" version (beta/rc..) PHP was compiled against.
2604 * (Available as of PHP 5.2.4)
2605 * @link http://www.php.net/manual/en/image.constants.php
2606 */
2607 define ('GD_EXTRA_VERSION', "");
2608
2609 /**
2610 * A special PNG filter, used by the imagepng function.
2611 * @link http://www.php.net/manual/en/image.constants.php
2612 */
2613 define ('PNG_NO_FILTER', 0);
2614
2615 /**
2616 * A special PNG filter, used by the imagepng function.
2617 * @link http://www.php.net/manual/en/image.constants.php
2618 */
2619 define ('PNG_FILTER_NONE', 8);
2620
2621 /**
2622 * A special PNG filter, used by the imagepng function.
2623 * @link http://www.php.net/manual/en/image.constants.php
2624 */
2625 define ('PNG_FILTER_SUB', 16);
2626
2627 /**
2628 * A special PNG filter, used by the imagepng function.
2629 * @link http://www.php.net/manual/en/image.constants.php
2630 */
2631 define ('PNG_FILTER_UP', 32);
2632
2633 /**
2634 * A special PNG filter, used by the imagepng function.
2635 * @link http://www.php.net/manual/en/image.constants.php
2636 */
2637 define ('PNG_FILTER_AVG', 64);
2638
2639 /**
2640 * A special PNG filter, used by the imagepng function.
2641 * @link http://www.php.net/manual/en/image.constants.php
2642 */
2643 define ('PNG_FILTER_PAETH', 128);
2644
2645 /**
2646 * A special PNG filter, used by the imagepng function.
2647 * @link http://www.php.net/manual/en/image.constants.php
2648 */
2649 define ('PNG_ALL_FILTERS', 248);
2650
2651 // End of gd v.
2652 ?>