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 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796
|
<?php
/** @generate-class-entries */
/**
* @var int
* @cvalue PHP_IMG_AVIF
*/
const IMG_AVIF = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_GIF
*/
const IMG_GIF = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_JPG
*/
const IMG_JPG = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_JPEG
*/
const IMG_JPEG = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_PNG
*/
const IMG_PNG = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_WBMP
*/
const IMG_WBMP = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_XPM
*/
const IMG_XPM = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_WEBP
*/
const IMG_WEBP = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_BMP
*/
const IMG_BMP = UNKNOWN;
/**
* @var int
* @cvalue PHP_IMG_TGA
*/
const IMG_TGA = UNKNOWN;
/* constant for webp encoding */
#ifdef gdWebpLossless
/**
* @var int
* @cvalue gdWebpLossless
*/
const IMG_WEBP_LOSSLESS = UNKNOWN;
#endif
/* special colours for gd */
/**
* @var int
* @cvalue gdTiled
*/
const IMG_COLOR_TILED = UNKNOWN;
/**
* @var int
* @cvalue gdStyled
*/
const IMG_COLOR_STYLED = UNKNOWN;
/**
* @var int
* @cvalue gdBrushed
*/
const IMG_COLOR_BRUSHED = UNKNOWN;
/**
* @var int
* @cvalue gdStyledBrushed
*/
const IMG_COLOR_STYLEDBRUSHED = UNKNOWN;
/**
* @var int
* @cvalue gdTransparent
*/
const IMG_COLOR_TRANSPARENT = UNKNOWN;
/* for imagefilledarc */
/**
* @var int
* @cvalue gdArc
*/
const IMG_ARC_ROUNDED = UNKNOWN;
/**
* @var int
* @cvalue gdPie
*/
const IMG_ARC_PIE = UNKNOWN;
/**
* @var int
* @cvalue gdChord
*/
const IMG_ARC_CHORD = UNKNOWN;
/**
* @var int
* @cvalue gdNoFill
*/
const IMG_ARC_NOFILL = UNKNOWN;
/**
* @var int
* @cvalue gdEdged
*/
const IMG_ARC_EDGED = UNKNOWN;
/* GD2 image format types */
/**
* @var int
* @cvalue GD2_FMT_RAW
*/
const IMG_GD2_RAW = UNKNOWN;
/**
* @var int
* @cvalue GD2_FMT_COMPRESSED
*/
const IMG_GD2_COMPRESSED = UNKNOWN;
/**
* @var int
* @cvalue PHP_GD_FLIP_HORIZONTAL
*/
const IMG_FLIP_HORIZONTAL = UNKNOWN;
/**
* @var int
* @cvalue PHP_GD_FLIP_VERTICAL
*/
const IMG_FLIP_VERTICAL = UNKNOWN;
/**
* @var int
* @cvalue PHP_GD_FLIP_BOTH
*/
const IMG_FLIP_BOTH = UNKNOWN;
/**
* @var int
* @cvalue gdEffectReplace
*/
const IMG_EFFECT_REPLACE = UNKNOWN;
/**
* @var int
* @cvalue gdEffectAlphaBlend
*/
const IMG_EFFECT_ALPHABLEND = UNKNOWN;
/**
* @var int
* @cvalue gdEffectNormal
*/
const IMG_EFFECT_NORMAL = UNKNOWN;
/**
* @var int
* @cvalue gdEffectOverlay
*/
const IMG_EFFECT_OVERLAY = UNKNOWN;
#ifdef gdEffectMultiply
/**
* @var int
* @cvalue gdEffectMultiply
*/
const IMG_EFFECT_MULTIPLY = UNKNOWN;
#endif
/**
* @var int
* @cvalue GD_CROP_DEFAULT
*/
const IMG_CROP_DEFAULT = UNKNOWN;
/**
* @var int
* @cvalue GD_CROP_TRANSPARENT
*/
const IMG_CROP_TRANSPARENT = UNKNOWN;
/**
* @var int
* @cvalue GD_CROP_BLACK
*/
const IMG_CROP_BLACK = UNKNOWN;
/**
* @var int
* @cvalue GD_CROP_WHITE
*/
const IMG_CROP_WHITE = UNKNOWN;
/**
* @var int
* @cvalue GD_CROP_SIDES
*/
const IMG_CROP_SIDES = UNKNOWN;
/**
* @var int
* @cvalue GD_CROP_THRESHOLD
*/
const IMG_CROP_THRESHOLD = UNKNOWN;
/**
* @var int
* @cvalue GD_BELL
*/
const IMG_BELL = UNKNOWN;
/**
* @var int
* @cvalue GD_BESSEL
*/
const IMG_BESSEL = UNKNOWN;
/**
* @var int
* @cvalue GD_BILINEAR_FIXED
*/
const IMG_BILINEAR_FIXED = UNKNOWN;
/**
* @var int
* @cvalue GD_BICUBIC
*/
const IMG_BICUBIC = UNKNOWN;
/**
* @var int
* @cvalue GD_BICUBIC_FIXED
*/
const IMG_BICUBIC_FIXED = UNKNOWN;
/**
* @var int
* @cvalue GD_BLACKMAN
*/
const IMG_BLACKMAN = UNKNOWN;
/**
* @var int
* @cvalue GD_BOX
*/
const IMG_BOX = UNKNOWN;
/**
* @var int
* @cvalue GD_BSPLINE
*/
const IMG_BSPLINE = UNKNOWN;
/**
* @var int
* @cvalue GD_CATMULLROM
*/
const IMG_CATMULLROM = UNKNOWN;
/**
* @var int
* @cvalue GD_GAUSSIAN
*/
const IMG_GAUSSIAN = UNKNOWN;
/**
* @var int
* @cvalue GD_GENERALIZED_CUBIC
*/
const IMG_GENERALIZED_CUBIC = UNKNOWN;
/**
* @var int
* @cvalue GD_HERMITE
*/
const IMG_HERMITE = UNKNOWN;
/**
* @var int
* @cvalue GD_HAMMING
*/
const IMG_HAMMING = UNKNOWN;
/**
* @var int
* @cvalue GD_HANNING
*/
const IMG_HANNING = UNKNOWN;
/**
* @var int
* @cvalue GD_MITCHELL
*/
const IMG_MITCHELL = UNKNOWN;
/**
* @var int
* @cvalue GD_POWER
*/
const IMG_POWER = UNKNOWN;
/**
* @var int
* @cvalue GD_QUADRATIC
*/
const IMG_QUADRATIC = UNKNOWN;
/**
* @var int
* @cvalue GD_SINC
*/
const IMG_SINC = UNKNOWN;
/**
* @var int
* @cvalue GD_NEAREST_NEIGHBOUR
*/
const IMG_NEAREST_NEIGHBOUR = UNKNOWN;
/**
* @var int
* @cvalue GD_WEIGHTED4
*/
const IMG_WEIGHTED4 = UNKNOWN;
/**
* @var int
* @cvalue GD_TRIANGLE
*/
const IMG_TRIANGLE = UNKNOWN;
/**
* @var int
* @cvalue GD_AFFINE_TRANSLATE
*/
const IMG_AFFINE_TRANSLATE = UNKNOWN;
/**
* @var int
* @cvalue GD_AFFINE_SCALE
*/
const IMG_AFFINE_SCALE = UNKNOWN;
/**
* @var int
* @cvalue GD_AFFINE_ROTATE
*/
const IMG_AFFINE_ROTATE = UNKNOWN;
/**
* @var int
* @cvalue GD_AFFINE_SHEAR_HORIZONTAL
*/
const IMG_AFFINE_SHEAR_HORIZONTAL = UNKNOWN;
/**
* @var int
* @cvalue GD_AFFINE_SHEAR_VERTICAL
*/
const IMG_AFFINE_SHEAR_VERTICAL = UNKNOWN;
/**
* @var int
* @cvalue GD_BUNDLED
*/
const GD_BUNDLED = UNKNOWN;
/* Section Filters */
/**
* @var int
* @cvalue IMAGE_FILTER_NEGATE
*/
const IMG_FILTER_NEGATE = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_GRAYSCALE
*/
const IMG_FILTER_GRAYSCALE = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_BRIGHTNESS
*/
const IMG_FILTER_BRIGHTNESS = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_CONTRAST
*/
const IMG_FILTER_CONTRAST = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_COLORIZE
*/
const IMG_FILTER_COLORIZE = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_EDGEDETECT
*/
const IMG_FILTER_EDGEDETECT = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_GAUSSIAN_BLUR
*/
const IMG_FILTER_GAUSSIAN_BLUR = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_SELECTIVE_BLUR
*/
const IMG_FILTER_SELECTIVE_BLUR = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_EMBOSS
*/
const IMG_FILTER_EMBOSS = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_MEAN_REMOVAL
*/
const IMG_FILTER_MEAN_REMOVAL = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_SMOOTH
*/
const IMG_FILTER_SMOOTH = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_PIXELATE
*/
const IMG_FILTER_PIXELATE = UNKNOWN;
/**
* @var int
* @cvalue IMAGE_FILTER_SCATTER
*/
const IMG_FILTER_SCATTER = UNKNOWN;
#ifdef GD_VERSION_STRING
/**
* @var string
* @cvalue GD_VERSION_STRING
*/
const GD_VERSION = UNKNOWN;
#endif
#if (defined(GD_MAJOR_VERSION) && defined(GD_MINOR_VERSION) && defined(GD_RELEASE_VERSION) && defined(GD_EXTRA_VERSION))
/**
* @var int
* @cvalue GD_MAJOR_VERSION
*/
const GD_MAJOR_VERSION = UNKNOWN;
/**
* @var int
* @cvalue GD_MINOR_VERSION
*/
const GD_MINOR_VERSION = UNKNOWN;
/**
* @var int
* @cvalue GD_RELEASE_VERSION
*/
const GD_RELEASE_VERSION = UNKNOWN;
/**
* @var string
* @cvalue GD_EXTRA_VERSION
*/
const GD_EXTRA_VERSION = UNKNOWN;
#endif
#ifdef HAVE_GD_PNG
/*
* cannot include #include "png.h"
* /usr/include/pngconf.h:310:2: error: #error png.h already includes setjmp.h with some additional fixup.
* as error, use the values for now...
*/
/** @var int */
const PNG_NO_FILTER = 0x00;
/** @var int */
const PNG_FILTER_NONE = 0x08;
/** @var int */
const PNG_FILTER_SUB = 0x10;
/** @var int */
const PNG_FILTER_UP = 0x20;
/** @var int */
const PNG_FILTER_AVG = 0x40;
/** @var int */
const PNG_FILTER_PAETH = 0x80;
/** @var int */
const PNG_ALL_FILTERS = 0x08 | 0x10 | 0x20 | 0x40 | 0x80;
#endif
/**
* @strict-properties
* @not-serializable
*/
final class GdImage {}
/**
* @strict-properties
* @not-serializable
*/
final class GdFont {}
/**
* @return array<string, string|bool>
* @refcount 1
*/
function gd_info(): array {}
function imageloadfont(string $filename): GdFont|false {}
function imagesetstyle(GdImage $image, array $style): bool {}
/** @refcount 1 */
function imagecreatetruecolor(int $width, int $height): GdImage|false {}
function imageistruecolor(GdImage $image): bool {}
function imagetruecolortopalette(GdImage $image, bool $dither, int $num_colors): bool {}
function imagepalettetotruecolor(GdImage $image): bool {}
function imagecolormatch(GdImage $image1, GdImage $image2): bool {}
function imagesetthickness(GdImage $image, int $thickness): bool {}
function imagefilledellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {}
function imagefilledarc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): bool {}
function imagealphablending(GdImage $image, bool $enable): bool {}
function imagesavealpha(GdImage $image, bool $enable): bool {}
function imagelayereffect(GdImage $image, int $effect): bool {}
function imagecolorallocatealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {}
function imagecolorresolvealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
function imagecolorclosestalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
function imagecopyresampled(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
#ifdef PHP_WIN32
/** @refcount 1 */
function imagegrabwindow(int $handle, bool $client_area = false): GdImage|false {}
/** @refcount 1 */
function imagegrabscreen(): GdImage|false {}
#endif
/** @refcount 1 */
function imagerotate(GdImage $image, float $angle, int $background_color): GdImage|false {}
function imagesettile(GdImage $image, GdImage $tile): bool {}
function imagesetbrush(GdImage $image, GdImage $brush): bool {}
/** @refcount 1 */
function imagecreate(int $width, int $height): GdImage|false {}
/** @compile-time-eval */
function imagetypes(): int {}
/** @refcount 1 */
function imagecreatefromstring(string $data): GdImage|false {}
#ifdef HAVE_GD_AVIF
/** @refcount 1 */
function imagecreatefromavif(string $filename): GdImage|false {}
#endif
/** @refcount 1 */
function imagecreatefromgif(string $filename): GdImage|false {}
#ifdef HAVE_GD_JPG
/** @refcount 1 */
function imagecreatefromjpeg(string $filename): GdImage|false {}
#endif
#ifdef HAVE_GD_PNG
/** @refcount 1 */
function imagecreatefrompng(string $filename): GdImage|false {}
#endif
#ifdef HAVE_GD_WEBP
/** @refcount 1 */
function imagecreatefromwebp(string $filename): GdImage|false {}
#endif
/** @refcount 1 */
function imagecreatefromxbm(string $filename): GdImage|false {}
#ifdef HAVE_GD_XPM
/** @refcount 1 */
function imagecreatefromxpm(string $filename): GdImage|false {}
#endif
/** @refcount 1 */
function imagecreatefromwbmp(string $filename): GdImage|false {}
/** @refcount 1 */
function imagecreatefromgd(string $filename): GdImage|false {}
/** @refcount 1 */
function imagecreatefromgd2(string $filename): GdImage|false {}
/** @refcount 1 */
function imagecreatefromgd2part(string $filename, int $x, int $y, int $width, int $height): GdImage|false {}
#ifdef HAVE_GD_BMP
/** @refcount 1 */
function imagecreatefrombmp(string $filename): GdImage|false {}
#endif
#ifdef HAVE_GD_TGA
function imagecreatefromtga(string $filename): GdImage|false {}
#endif
function imagexbm(GdImage $image, ?string $filename, ?int $foreground_color = null): bool {}
#ifdef HAVE_GD_AVIF
/** @param resource|string|null $file */
function imageavif(GdImage $image, $file = null, int $quality = -1, int $speed = -1): bool {}
#endif
/** @param resource|string|null $file */
function imagegif(GdImage $image, $file = null): bool {}
#ifdef HAVE_GD_PNG
/** @param resource|string|null $file */
function imagepng(GdImage $image, $file = null, int $quality = -1, int $filters = -1): bool {}
#endif
#ifdef HAVE_GD_WEBP
/** @param resource|string|null $file */
function imagewebp(GdImage $image, $file = null, int $quality = -1): bool {}
#endif
#ifdef HAVE_GD_JPG
/** @param resource|string|null $file */
function imagejpeg(GdImage $image, $file = null, int $quality = -1): bool {}
#endif
/** @param resource|string|null $file */
function imagewbmp(GdImage $image, $file = null, ?int $foreground_color = null): bool {}
function imagegd(GdImage $image, ?string $file = null): bool {}
function imagegd2(GdImage $image, ?string $file = null, int $chunk_size = 128, int $mode = IMG_GD2_RAW): bool {}
#ifdef HAVE_GD_BMP
/** @param resource|string|null $file */
function imagebmp(GdImage $image, $file = null, bool $compressed = true): bool {}
#endif
function imagedestroy(GdImage $image): bool {}
function imagecolorallocate(GdImage $image, int $red, int $green, int $blue): int|false {}
function imagepalettecopy(GdImage $dst, GdImage $src): void {}
function imagecolorat(GdImage $image, int $x, int $y): int|false {}
function imagecolorclosest(GdImage $image, int $red, int $green, int $blue): int {}
function imagecolorclosesthwb(GdImage $image, int $red, int $green, int $blue): int {}
function imagecolordeallocate(GdImage $image, int $color): bool {}
function imagecolorresolve(GdImage $image, int $red, int $green, int $blue): int {}
function imagecolorexact(GdImage $image, int $red, int $green, int $blue): int {}
function imagecolorset(GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0): false|null {}
/**
* @return array<string, int>
* @refcount 1
*/
function imagecolorsforindex(GdImage $image, int $color): array {}
function imagegammacorrect(GdImage $image, float $input_gamma, float $output_gamma): bool {}
function imagesetpixel(GdImage $image, int $x, int $y, int $color): bool {}
function imageline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
function imagedashedline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
function imagerectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
function imagefilledrectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
function imagearc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): bool {}
function imageellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {}
function imagefilltoborder(GdImage $image, int $x, int $y, int $border_color, int $color): bool {}
function imagefill(GdImage $image, int $x, int $y, int $color): bool {}
function imagecolorstotal(GdImage $image): int {}
function imagecolortransparent(GdImage $image, ?int $color = null): int {}
function imageinterlace(GdImage $image, ?bool $enable = null): bool {}
function imagepolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
function imageopenpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
function imagefilledpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
function imagefontwidth(GdFont|int $font): int {}
function imagefontheight(GdFont|int $font): int {}
function imagechar(GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color): bool {}
function imagecharup(GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color): bool {}
function imagestring(GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color): bool {}
function imagestringup(GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color): bool {}
function imagecopy(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): bool {}
function imagecopymerge(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {}
function imagecopymergegray(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {}
function imagecopyresized(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
function imagesx(GdImage $image): int {}
function imagesy(GdImage $image): int {}
function imagesetclip(GdImage $image, int $x1, int $y1, int $x2, int $y2): bool {}
/**
* @return array<int, int>
* @refcount 1
*/
function imagegetclip(GdImage $image): array {}
#ifdef HAVE_GD_FREETYPE
/**
* @return array<int, int>|false
* @refcount 1
*/
function imageftbbox(float $size, float $angle, string $font_filename, string $string, array $options = []): array|false {}
/**
* @return array<int, int>|false
* @refcount 1
*/
function imagefttext(GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array|false {}
/**
* @return array<int, int>|false
* @alias imageftbbox
*/
function imagettfbbox(float $size, float $angle, string $font_filename, string $string, array $options = []): array|false {}
/**
* @return array<int, int>|false
* @alias imagefttext
*/
function imagettftext(GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array|false {}
#endif
/** @param array|int|float|bool $args */
function imagefilter(GdImage $image, int $filter, ...$args): bool {}
function imageconvolution(GdImage $image, array $matrix, float $divisor, float $offset): bool {}
function imageflip(GdImage $image, int $mode): bool {}
function imageantialias(GdImage $image, bool $enable): bool {}
/** @refcount 1 */
function imagecrop(GdImage $image, array $rectangle): GdImage|false {}
/** @refcount 1 */
function imagecropauto(GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): GdImage|false {}
/** @refcount 1 */
function imagescale(GdImage $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false {}
/** @refcount 1 */
function imageaffine(GdImage $image, array $affine, ?array $clip = null): GdImage|false {}
/**
* @param array|float $options
* @refcount 1
* @return array<int, float>|false
*/
function imageaffinematrixget(int $type, $options): array|false {}
/**
* @return array<int, float>|false
* @refcount 1
*/
function imageaffinematrixconcat(array $matrix1, array $matrix2): array|false {}
function imagegetinterpolation(GdImage $image): int {}
function imagesetinterpolation(GdImage $image, int $method = IMG_BILINEAR_FIXED): bool {}
/**
* @return array<int, int>|true
* @refcount 1
*/
function imageresolution(GdImage $image, ?int $resolution_x = null, ?int $resolution_y = null): array|bool {}
|