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 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675
|
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/
class Imagick
{
public function optimizeImageLayers(): Imagick {}
// METRIC_*
public function compareImageLayers(int $metric): Imagick {}
public function pingImageBlob(string $image): bool {}
// $filehandle should be a resource, but that is a pseudo-type
// which causes problems for people trying to mock the class
public function pingImageFile(/*resource*/mixed $filehandle, ?string $filename = null): bool {}
public function transposeImage(): bool {}
public function transverseImage(): bool {}
public function trimImage(float $fuzz): bool {}
public function waveImage(float $amplitude, float $length): bool {}
#if MagickLibVersion >= 0x700
public function waveImageWithMethod(
float $amplitude,
float $length,
int $interpolate_method // INTERPOLATE_*
): bool {}
#endif
public function vignetteImage(float $black_point, float $white_point, int $x, int $y): bool {}
public function uniqueImageColors(): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
// PHP_ME(imagick, getimagematte, imagick_zero_args, ZEND_ACC_PUBLIC | ZEND_ACC_DEPRECATED)
/** @deprecated */
public function getImageMatte(): bool {}
#endif
#endif
// TODO - enabled?
public function setImageMatte(bool $matte): bool {}
public function adaptiveResizeImage(
int $columns,
int $rows,
bool $bestfit = false,
bool $legacy = false): bool {}
public function sketchImage(float $radius, float $sigma, float $angle): bool {}
public function shadeImage(bool $gray, float $azimuth, float $elevation): bool {}
public function getSizeOffset(): int {}
public function setSizeOffset(int $columns, int $rows, int $offset): bool {}
public function adaptiveBlurImage(
float $radius,
float $sigma,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function contrastStretchImage(
float $black_point,
float $white_point,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function adaptiveSharpenImage(
float $radius,
float $sigma,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function randomThresholdImage(
float $low,
float $high,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function roundCornersImage(
float $x_rounding,
float $y_rounding,
float $stroke_width = 10,
float $displace = 5,
float $size_correction = -6): bool {}
/**
* @alias Imagick::roundCornersImage
*/
public function roundCorners(
float $x_rounding,
float $y_rounding,
float $stroke_width = 10,
float $displace = 5,
float $size_correction = -6): bool {}
public function setIteratorIndex(int $index): bool {}
public function getIteratorIndex(): int {}
#if MagickLibVersion < 0x700
/** @deprecated */
public function transformImage(string $crop, string $geometry): Imagick {}
#endif
#if MagickLibVersion > 0x630
#if MagickLibVersion < 0x700
/** @deprecated */
public function setImageOpacity(float $opacity): bool {}
#endif
#endif
#if MagickLibVersion >= 0x700
public function setImageAlpha(float $alpha): bool {}
#endif
#if MagickLibVersion < 0x700
/** @deprecated */
public function orderedPosterizeImage(
string $threshold_map,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#if MagickLibVersion >= 0x700
public function polaroidWithTextAndMethod(
ImagickDraw $settings,
float $angle,
string $caption,
int $method
): bool {}
#endif
public function polaroidImage(ImagickDraw $settings, float $angle): bool {}
public function getImageProperty(string $name): string {}
public function setImageProperty(string $name, string $value): bool {}
public function deleteImageProperty(string $name): bool {}
// Replaces any embedded formatting characters with the appropriate
// image property and returns the interpreted text.
// See http://www.imagemagick.org/script/escape.php for escape sequences.
// -format "%m:%f %wx%h"
public function identifyFormat(string $format): string {}
#if IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD
// INTERPOLATE_*
public function setImageInterpolateMethod(int $method): bool {}
#endif
// why does this not need to be inside the 'if' for IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD ..?
public function getImageInterpolateMethod(): int {}
public function linearStretchImage(float $black_point, float $white_point): bool {}
public function getImageLength(): int {}
public function extentImage(int $width, int $height, int $x, int $y): bool {}
#if MagickLibVersion > 0x633
public function getImageOrientation(): int {}
public function setImageOrientation(int $orientation): bool {}
#endif
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion > 0x634
#if MagickLibVersion < 0x700
/** @deprecated */
public function paintFloodfillImage(
ImagickPixel|string $fill_color,
float $fuzz,
ImagickPixel|string $border_color,
int $x,
int $y,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#endif
#endif
public function clutImage(Imagick $lookup_table, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if MagickLibVersion >= 0x700
public function clutImageWithInterpolate(
Imagick $lookup_table,
int $pixel_interpolate_method // PixelInterpolateMethod
): bool {}
#endif
public function getImageProperties(string $pattern = "*", bool $include_values = true): array {}
public function getImageProfiles(string $pattern = "*", bool $include_values = true): array {}
// DISTORTION_*
public function distortImage(int $distortion, array $arguments, bool $bestfit): bool {}
// $filehandle should be a resource, but that is a pseudo-type
// which causes problems for people trying to mock the class
public function writeImageFile(/*resource*/mixed $filehandle, ?string $format = null): bool {}
// $filehandle should be a resource, but that is a pseudo-type
// which causes problems for people trying to mock the class
public function writeImagesFile(/*resource*/mixed $filehandle, ?string $format = null): bool {}
public function resetImagePage(string $page): bool {}
#if MagickLibVersion < 0x700
/** @deprecated */
public function setImageClipMask(imagick $clip_mask): bool {}
/** @deprecated */
public function getImageClipMask(): Imagick {}
#endif
// TODO - x server?
public function animateImages(string $x_server): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function recolorImage(array $matrix): bool {}
#endif
#endif
#if MagickLibVersion > 0x636
public function setFont(string $font): bool {}
public function getFont(): string {}
public function setPointSize(float $point_size): bool {}
public function getPointSize(): float {}
// LAYERMETHOD_*
public function mergeImageLayers(int $layermethod): Imagick {}
#endif
#if MagickLibVersion > 0x637
// ALPHACHANNEL_*
public function setImageAlphaChannel(int $alphachannel): bool {}
// TODO - ImagickPixel ugh
// TODO - ugh MagickBooleanType MagickFloodfillPaintImage(MagickWand *wand,
// const PixelWand *fill,const double fuzz,const PixelWand *bordercolor,
// const ssize_t x,const ssize_t y,const MagickBooleanType invert)
public function floodfillPaintImage(
ImagickPixel|string $fill_color,
float $fuzz,
ImagickPixel|string $border_color,
int $x,
int $y,
bool $invert,
?int $channel = Imagick::CHANNEL_DEFAULT
): bool{}
public function opaquePaintImage(
ImagickPixel|string $target_color,
ImagickPixel|string $fill_color,
float $fuzz,
bool $invert,
int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function transparentPaintImage(
ImagickPixel|string $target_color,
float $alpha,
float $fuzz,
bool $invert
): bool {}
#endif
#if MagickLibVersion > 0x638
public function liquidRescaleImage(int $width, int $height, float $delta_x, float $rigidity): bool {}
public function encipherImage(string $passphrase): bool {}
public function decipherImage(string $passphrase): bool {}
#endif
#if MagickLibVersion > 0x639
// GRAVITY_*
public function setGravity(int $gravity): bool {}
public function getGravity(): int {}
// CHANNEL_
public function getImageChannelRange(int $channel): array {}
public function getImageAlphaChannel(): bool {}
#endif
#if MagickLibVersion > 0x642
public function getImageChannelDistortions(
Imagick $reference_image,
int $metric,
int $channel = Imagick::CHANNEL_DEFAULT
): float {}
#endif
#if MagickLibVersion > 0x643
// GRAVITY_
public function setImageGravity(int $gravity): bool {}
public function getImageGravity(): int {}
#endif
#if MagickLibVersion > 0x645
public function importImagePixels(
int $x,
int $y,
int $width,
int $height,
string $map,
int $pixelstorage, // PIXELSTORAGE
array $pixels): bool {}
public function deskewImage(float $threshold): bool {}
public function segmentImage(
int $colorspace, // COLORSPACE
float $cluster_threshold,
float $smooth_threshold,
bool $verbose = false
): bool {}
public function sparseColorImage(
int $sparsecolormethod, // SPARSECOLORMETHOD_*
array $arguments,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function remapImage(Imagick $replacement, int $dither_method): bool {}
#endif
#if PHP_IMAGICK_HAVE_HOUGHLINE
public function houghLineImage(int $width, int $height, float $threshold): bool {}
#endif
#if MagickLibVersion > 0x646
public function exportImagePixels(
int $x,
int $y,
int $width,
int $height,
string $map, // e.g. "RGB"
int $pixelstorage // PIXELSTORAGE
): array {}
#endif
#if MagickLibVersion > 0x648
public function getImageChannelKurtosis(int $channel = Imagick::CHANNEL_DEFAULT): array {}
public function functionImage(
int $function,
array $parameters,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#if MagickLibVersion > 0x651
// COLORSPACE_*
public function transformImageColorspace(int $colorspace): bool {}
#endif
#if MagickLibVersion > 0x652
public function haldClutImage(Imagick $clut, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#endif
#if MagickLibVersion > 0x655
public function autoLevelImage(int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function blueShiftImage(float $factor = 1.5): bool {}
#endif
#if MagickLibVersion > 0x656
/**
* $artifact example 'compose:args'
*
*/
public function getImageArtifact(string $artifact): string|null {}
/**
* $artifact example 'compose:args'
* $value example "1,0,-0.5,0.5"
*
*/
public function setImageArtifact(string $artifact, string|null $value): bool {}
public function deleteImageArtifact(string $artifact): bool {}
// Will return CHANNEL_*
public function getColorspace(): int {}
// PHP_ME(imagick, setcolorspace, imagick_setcolorspace_args, ZEND_ACC_PUBLIC)
public function setColorspace(int $colorspace): bool {}
// CHANNEL_*
public function clampImage(int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#endif
#if MagickLibVersion > 0x667
// stack By default, images are stacked left-to-right. Set stack to MagickTrue to stack them top-to-bottom.
//offset minimum distance in pixels between images.
public function smushImages(bool $stack, int $offset): Imagick {}
#endif
// PHP_ME(imagick, __construct, imagick_construct_args, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
// TODO int|float? :spocks_eyebrow.gif:
public function __construct(string|array|int|float|null $files = null) {}
public function __toString(): string {}
#if PHP_VERSION_ID >= 50600
// This calls MagickGetNumberImages underneath
// mode is unused. Remove at next major release
// https://github.com/Imagick/imagick/commit/13302500c0ab0ce58e6502e68871187180f7987c
public function count(int $mode = 0): int {}
#else
public function count(): int {}
#endif
public function getPixelIterator(): ImagickPixelIterator {}
public function getPixelRegionIterator(int $x, int $y, int $columns, int $rows): ImagickPixelIterator {}
public function readImage(string $filename): bool {}
public function readImages(array $filenames): bool {}
public function readImageBlob(string $image, ?string $filename = null): bool {}
public function setImageFormat(string $format): bool {}
public function scaleImage(int $columns, int $rows, bool $bestfit = false, bool $legacy = false): bool {}
public function writeImage(?string $filename = null): bool {}
public function writeImages(string $filename, bool $adjoin): bool {}
// CHANNEL_
public function blurImage(float $radius, float $sigma, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function thumbnailImage(
?int $columns,
?int $rows,
bool $bestfit = false,
bool $fill = false,
bool $legacy = false): bool {}
public function cropThumbnailImage(int $width, int $height, bool $legacy = false): bool {}
public function getImageFilename(): string {}
public function setImageFilename(string $filename): bool {}
public function getImageFormat(): string {}
public function getImageMimeType(): string {}
public function removeImage(): bool {}
/** @alias Imagick::clear */
public function destroy(): bool {}
public function clear(): bool {}
public function clone(): Imagick {}
public function getImageSize(): int {}
public function getImageBlob(): ?string {}
public function getImagesBlob(): string {}
public function setFirstIterator(): bool {}
public function setLastIterator(): bool {}
public function resetIterator(): void {}
public function previousImage(): bool {}
public function nextImage(): bool {}
public function hasPreviousImage(): bool {}
public function hasNextImage(): bool {}
public function setImageIndex(int $index): bool {}
public function getImageIndex(): int {}
public function commentImage(string $comment): bool {}
public function cropImage(int $width, int $height, int $x, int $y): bool {}
public function labelImage(string $label): bool {}
public function getImageGeometry(): array {}
public function drawImage(ImagickDraw $drawing): bool {}
public function setImageCompressionQuality(int $quality): bool {}
public function getImageCompressionQuality(): int {}
public function setImageCompression(int $compression): bool {}
public function getImageCompression(): int {}
public function annotateImage(
ImagickDraw $settings,
float $x,
float $y,
float $angle,
string $text
): bool {}
public function compositeImage(
Imagick $composite_image,
int $composite,
int $x,
int $y,
int $channel = Imagick::CHANNEL_DEFAULT): bool{}
public function modulateImage(float $brightness, float $saturation, float $hue): bool {}
public function getImageColors(): int {}
public function montageImage(
ImagickDraw $settings,
string $tile_geometry, // e.g. "3x2+0+0"
string $thumbnail_geometry, // e.g. "200x160+3+3>"
int $monatgemode, // MONTAGEMODE_
string $frame // "10x10+2+2"
): Imagick {}
public function identifyImage(bool $append_raw_output = false): array {}
public function thresholdImage(float $threshold, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function adaptiveThresholdImage(int $width, int $height, int $offset): bool {}
public function blackThresholdImage(ImagickPixel|string $threshold_color): bool {}
public function whiteThresholdImage(ImagickPixel|string $threshold_color): bool {}
public function appendImages(bool $stack): Imagick {}
public function charcoalImage(float $radius, float $sigma): bool {}
public function normalizeImage(int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if MagickLibVersion >= 0x700
public function oilPaintImageWithSigma(float $radius, float $sigma): bool {}
#endif
public function oilPaintImage(float $radius): bool {}
public function posterizeImage(int $levels, bool $dither): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function radialBlurImage(float $angle, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#endif
#endif
public function raiseImage(int $width, int $height, int $x, int $y, bool $raise): bool {}
public function resampleImage(float $x_resolution, float $y_resolution, int $filter, float $blur): bool {}
public function resizeImage(
int $columns,
int $rows,
int $filter,
float $blur,
bool $bestfit = false,
bool $legacy = false): bool {}
public function rollImage(int $x, int $y): bool {}
public function rotateImage(ImagickPixel|string $background_color, float $degrees): bool {}
public function sampleImage(int $columns, int $rows): bool {}
public function solarizeImage(int $threshold): bool {}
public function shadowImage(float $opacity, float $sigma, int $x, int $y): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function setImageAttribute(string $key, string $value): bool {}
#endif
#endif
public function setImageBackgroundColor(ImagickPixel|string $background_color): bool {}
#if MagickLibVersion >= 0x700
public function setImageChannelMask(int $channel): int {}
#endif
public function setImageCompose(int $compose): bool {}
public function setImageDelay(int $delay): bool {}
public function setImageDepth(int $depth): bool {}
public function setImageGamma(float $gamma): bool {}
public function setImageIterations(int $iterations): bool {}
#if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705
public function setImageMatteColor(ImagickPixel|string $matte_color): bool {}
#endif
public function setImagePage(int $width, int $height, int $x, int $y): bool {}
// TODO test this.
public function setImageProgressMonitor(string $filename): bool {}
#if MagickLibVersion > 0x653
public function setProgressMonitor(callable $callback): bool {}
#endif
public function setImageResolution(float $x_resolution, float $y_resolution): bool {}
// I have no idea what scene does.
public function setImageScene(int $scene): bool {}
public function setImageTicksPerSecond(int $ticks_per_second): bool {}
// IMGTYPE_*
public function setImageType(int $image_type): bool {}
public function setImageUnits(int $units): bool {}
public function sharpenImage(float $radius, float $sigma, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function shaveImage(int $columns, int $rows): bool {}
public function shearImage(ImagickPixel|string $background_color, float $x_shear, float $y_shear): bool {}
public function spliceImage(int $width, int $height, int $x, int $y): bool {}
public function pingImage(string $filename): bool {}
// $filehandle should be a resource, but that is a pseudo-type
// which causes problems for people trying to mock the class
public function readImageFile(/*resource*/mixed $filehandle, ?string $filename = null): bool {}
public function displayImage(string $servername): bool {}
public function displayImages(string $servername): bool {}
public function spreadImage(float $radius): bool {}
#if MagickLibVersion >= 0x700
public function spreadImageWithMethod(
float $radius,
int $interpolate_method // INTERPOLATE_*
): bool {}
#endif
public function swirlImage(float $degrees): bool {}
#if MagickLibVersion >= 0x700
public function swirlImageWithMethod(
float $degrees,
int $interpolate_method // INTERPOLATE_*
): bool {}
#endif
public function stripImage(): bool {}
public static function queryFormats(string $pattern = "*"): array {}
public static function queryFonts(string $pattern = "*"): array {}
/* TODO $multiline == null, means we should autodetect */
public function queryFontMetrics(ImagickDraw $settings, string $text, ?bool $multiline = null): array {}
public function steganoImage(Imagick $watermark, int $offset): Imagick {}
// NOISE_*
public function addNoiseImage(int $noise, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE
public function addNoiseImageWithAttenuate(
int $noise,
float $attenuate,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
public function motionBlurImage(
float $radius,
float $sigma,
float $angle,
int $channel = Imagick::CHANNEL_DEFAULT
):bool {}
#if MagickLibVersion < 0x700
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
/** @deprecated */
public function mosaicImages(): Imagick {}
#endif
#endif
public function morphImages(int $number_frames): Imagick {}
public function minifyImage(): bool {}
public function affineTransformImage(ImagickDraw $settings): bool {}
public function averageImages(): Imagick {}
public function borderImage(
ImagickPixel|string $border_color,
int $width,
int $height
): bool {}
#if MagickLibVersion >= 0x700
public function borderImageWithComposite(
ImagickPixel|string $border_color,
int $width,
int $height,
int $composite // COMPOSITE_ // null rather than OverCompositeOp as we don't control the value
): bool {}
#endif
public static function calculateCrop(
int $original_width,
int $original_height,
int $desired_width,
int $desired_height,
bool $legacy = false): array {}
public function chopImage(int $width, int $height, int $x, int $y): bool {}
public function clipImage(): bool {}
public function clipPathImage(string $pathname, bool $inside): bool {}
/* clippathimage has been deprecated. Create alias here and use the newer API function if present */
/** @alias Imagick::clipPathImage */
public function clipImagePath(string $pathname, bool $inside): void {}
public function coalesceImages(): Imagick {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function colorFloodfillImage(
ImagickPixel|string $fill_color,
float $fuzz,
ImagickPixel|string $border_color,
int $x,
int $y
): bool {}
#endif
#endif
// TODO - opacity is actually float if legacy is true...
public function colorizeImage(
ImagickPixel|string $colorize_color,
ImagickPixel|string|false $opacity_color,
?bool $legacy = false ): bool {}
public function compareImageChannels(Imagick $reference, int $channel, int $metric): array {}
public function compareImages(Imagick $reference, int $metric): array {}
public function contrastImage(bool $sharpen): bool {}
public function combineImages(int $colorspace): Imagick {}
#if MagickLibVersion >= 0x700
public function convolveImage(ImagickKernel $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#else
// kernel is a 2d array of float values
public function convolveImage(array $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#endif
public function cycleColormapImage(int $displace): bool {}
public function deconstructImages(): Imagick {}
public function despeckleImage(): bool {}
public function edgeImage(float $radius): bool {}
public function embossImage(float $radius, float $sigma): bool {}
public function enhanceImage(): bool {}
public function equalizeImage(): bool {}
// EVALUATE_*
public function evaluateImage(int $evaluate, float $constant, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if MagickLibVersion >= 0x687
// Merge multiple images of the same size together with the selected operator.
//http://www.imagemagick.org/Usage/layers/#evaluate-sequence
// EVALUATE_*
public function evaluateImages(int $evaluate): Imagick {}
#endif
public function flattenImages(): Imagick {}
public function flipImage(): bool {}
public function flopImage(): bool {}
#if MagickLibVersion >= 0x655
public function forwardFourierTransformImage(bool $magnitude): bool {}
#endif
public function frameImage(
ImagickPixel|string $matte_color,
int $width,
int $height,
int $inner_bevel,
int $outer_bevel
): bool {}
#if MagickLibVersion >= 0x700
public function frameImageWithComposite(
ImagickPixel|string $matte_color,
int $width,
int $height,
int $inner_bevel,
int $outer_bevel,
int $composite
): bool {}
#endif
public function fxImage(string $expression, int $channel = Imagick::CHANNEL_DEFAULT): Imagick {}
public function gammaImage(float $gamma, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
public function gaussianBlurImage(float $radius, float $sigma, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if MagickLibVersion < 0x700
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
/** @deprecated */
public function getImageAttribute(string $key): string {}
#endif
#endif
public function getImageBackgroundColor(): ImagickPixel {}
public function getImageBluePrimary(): array {}
public function getImageBorderColor(): ImagickPixel {}
public function getImageChannelDepth(int $channel): int {}
public function getImageChannelDistortion(Imagick $reference, int $channel, int $metric): float {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function getImageChannelExtrema(int $channel): array {}
#endif
#endif
public function getImageChannelMean(int $channel): array {}
public function getImageChannelStatistics(): array {}
// index - the offset into the image colormap. I have no idea.
public function getImageColormapColor(int $index): ImagickPixel {}
public function getImageColorspace(): int {}
public function getImageCompose(): int {}
public function getImageDelay(): int {}
public function getImageDepth(): int {}
// METRIC_
public function getImageDistortion(Imagick $reference, int $metric): float {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function getImageExtrema(): array {}
#endif
#endif
public function getImageDispose(): int {}
public function getImageGamma(): float {}
public function getImageGreenPrimary(): array {}
public function getImageHeight(): int {}
public function getImageHistogram(): array {}
public function getImageInterlaceScheme(): int {}
public function getImageIterations(): int {}
#if MagickLibVersion < 0x700
/** @deprecated */
public function getImageMatteColor(): ImagickPixel {}
#endif
public function getImagePage(): array {}
public function getImagePixelColor(int $x, int $y): ImagickPixel {}
#if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR
// TODO - needs a test.
public function setImagePixelColor(int $x, int $y, ImagickPixel|string $color): ImagickPixel {}
#endif
public function getImageProfile(string $name): string {}
public function getImageRedPrimary(): array {}
public function getImageRenderingIntent(): int {}
public function getImageResolution(): array {}
public function getImageScene(): int {}
public function getImageSignature(): string {}
public function getImageTicksPerSecond(): int {}
public function getImageType(): int {}
public function getImageUnits(): int {}
public function getImageVirtualPixelMethod(): int {}
public function getImageWhitePoint(): array {}
public function getImageWidth(): int {}
public function getNumberImages(): int {}
public function getImageTotalInkDensity(): float {}
public function getImageRegion(int $width, int $height, int $x, int $y): Imagick {}
public function implodeImage(float $radius): bool {}
#if MagickLibVersion >= 0x700
public function implodeImageWithMethod(
float $radius,
int $pixel_interpolate_method // PixelInterpolateMethod
): bool {}
#endif
#if MagickLibVersion >= 0x658
// TODO MagickWand *magnitude_wand,MagickWand *phase_wand,
public function inverseFourierTransformImage(Imagick $complement, bool $magnitude): bool {}
#endif
public function levelImage(
float $black_point,
float $gamma,
float $white_point,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function magnifyImage(): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function mapImage(imagick $map, bool $dither): bool {}
/** @deprecated */
public function matteFloodfillImage(
float $alpha,
float $fuzz,
ImagickPixel|string $border_color,
int $x,
int $y
): bool {}
#endif
#endif
#if MagickLibVersion < 0x700
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
/** @deprecated */
public function medianFilterImage(float $radius): bool {}
#endif
#endif
public function negateImage(bool $gray, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function paintOpaqueImage(
ImagickPixel|string $target_color,
ImagickPixel|string $fill_color,
float $fuzz,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
/** @deprecated */
public function paintTransparentImage(ImagickPixel|string $target_color, float $alpha, float $fuzz): bool {}
#endif
#endif
// PREVIEW_*
public function previewImages(int $preview): bool {}
public function profileImage(string $name, ?string $profile): bool {}
public function quantizeImage(
int $number_colors,
int $colorspace,
int $tree_depth,
bool $dither,
bool $measure_error
): bool {}
public function quantizeImages(
int $number_colors,
int $colorspace,
int $tree_depth,
bool $dither,
bool $measure_error): bool {}
#if !defined(MAGICKCORE_EXCLUDE_DEPRECATED)
#if MagickLibVersion < 0x700
/** @deprecated */
public function reduceNoiseImage(float $radius): bool {}
#endif
#endif
public function removeImageProfile(string $name): string {}
public function separateImageChannel(int $channel): bool {}
public function sepiaToneImage(float $threshold): bool {}
#if MagickLibVersion < 0x700
/** @deprecated */
public function setImageBias(float $bias): bool {}
/** @deprecated */
public function setImageBiasQuantum(string $bias): void {}
#endif
#if MagickLibVersion >= 0x700
public function setImageBluePrimary(float $x, float $y, float $z): bool {}
#else
public function setImageBluePrimary(float $x, float $y): bool {}
#endif
/* {{{ proto bool Imagick::setImageBluePrimary(float x,float y)
For IM7 the prototype is
proto bool Imagick::setImageBluePrimary(float x, float y, float z) */
public function setImageBorderColor(ImagickPixel|string $border_color): bool {}
public function setImageChannelDepth(int $channel, int $depth): bool {}
public function setImageColormapColor(int $index, ImagickPixel|string $color): bool {}
public function setImageColorspace(int $colorspace): bool {}
public function setImageDispose(int $dispose): bool {}
public function setImageExtent(int $columns, int $rows): bool {}
#if MagickLibVersion >= 0x700
public function setImageGreenPrimary(float $x, float $y, float $z): bool {}
#else
public function setImageGreenPrimary(float $x, float $y): bool {}
#endif
// INTERLACE_*
public function setImageInterlaceScheme(int $interlace): bool {}
public function setImageProfile(string $name, string $profile): bool {}
#if MagickLibVersion >= 0x700
public function setImageRedPrimary(float $x, float $y, float $z): bool {}
#else
public function setImageRedPrimary(float $x, float $y): bool {}
#endif
// RENDERINGINTENT
public function setImageRenderingIntent(int $rendering_intent): bool {}
public function setImageVirtualPixelMethod(int $method): bool {}
#if MagickLibVersion >= 0x700
public function setImageWhitePoint(float $x, float $y, float $z): bool {}
#else
public function setImageWhitePoint(float $x, float $y): bool {}
#endif
public function sigmoidalContrastImage(
bool $sharpen,
float $alpha,
float $beta,
int $channel = Imagick::CHANNEL_DEFAULT
): bool{}
// TODO - MagickStereoImage() composites two images and produces a single
// image that is the composite of a left and right image of a stereo pair
public function stereoImage(Imagick $offset_image): bool {}
public function textureImage(Imagick $texture): Imagick {}
public function tintImage(
ImagickPixel|string $tint_color,
ImagickPixel|string $opacity_color,
bool $legacy = false
): bool {}
public function unsharpMaskImage(
float $radius,
float $sigma,
float $amount,
float $threshold,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
public function getImage(): Imagick {}
public function addImage(Imagick $image): bool {}
public function setImage(Imagick $image): bool {}
public function newImage(
int $columns,
int $rows,
ImagickPixel|string $background_color,
?string $format = null
): bool {}
// TODO - canvas? description
public function newPseudoImage(int $columns, int $rows, string $pseudo_format): bool {}
public function getCompression(): int {}
public function getCompressionQuality(): int {}
public static function getCopyright(): string {}
/**
* @return string[]
*/
public static function getConfigureOptions(string $pattern = "*"): array {}
#if MagickLibVersion > 0x660
public static function getFeatures(): string {}
#endif
public function getFilename(): string {}
public function getFormat(): string {}
public static function getHomeURL(): string {}
public function getInterlaceScheme(): int {}
public function getOption(string $key): string {}
public static function getPackageName(): string {}
public function getPage(): array {}
public static function getQuantum(): int {}
public static function getHdriEnabled(): bool {}
public static function getQuantumDepth(): array {}
public static function getQuantumRange(): array {}
public static function getReleaseDate(): string {}
public static function getResource(int $type): int {}
public static function getResourceLimit(int $type): float {}
public function getSamplingFactors(): array {}
public function getSize(): array {}
public static function getVersion(): array {}
public function setBackgroundColor(ImagickPixel|string $background_color): bool {}
public function setCompression(int $compression): bool {}
public function setCompressionQuality(int $quality): bool {}
public function setFilename(string $filename): bool {}
public function setFormat(string $format): bool {}
// INTERLACE_*
public function setInterlaceScheme(int $interlace): bool {}
public function setOption(string $key, string $value): bool {}
public function setPage(int $width, int $height, int $x, int $y): bool {}
public static function setResourceLimit(int $type, int $limit): bool {}
public function setResolution(float $x_resolution, float $y_resolution): bool {}
public function setSamplingFactors(array $factors): bool {}
public function setSize(int $columns, int $rows): bool {}
// IMGTYPE_*
public function setType(int $imgtype): bool {}
#if MagickLibVersion > 0x628
/** @alias Imagick::getIteratorIndex */
public function key(): int {}
//#else
//# if defined(MAGICKCORE_EXCLUDE_DEPRECATED)
//# error "MAGICKCORE_EXCLUDE_DEPRECATED should not be defined with ImageMagick version below 6.2.8"
//# else
//// PHP_MALIAS(imagick, key, getimageindex, imagick_zero_args, ZEND_ACC_PUBLIC)
// /** @alias Imagick::getImageIndex */
// public function key(): int {}
//
//# endif
#endif
public function next(): void {}
public function rewind(): void {}
public function valid(): bool {}
public function current(): Imagick {}
#if MagickLibVersion >= 0x659
public function brightnessContrastImage(
float $brightness,
float $contrast,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#if MagickLibVersion > 0x661
public function colorMatrixImage(array $color_matrix): bool {}
#endif
public function selectiveBlurImage(
float $radius,
float $sigma,
float $threshold,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#if MagickLibVersion >= 0x689
public function rotationalBlurImage(float $angle, int $channel = Imagick::CHANNEL_DEFAULT): bool {}
#endif
#if MagickLibVersion >= 0x683
public function statisticImage(
int $type,
int $width,
int $height,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#if MagickLibVersion >= 0x652
/**
* @param array $offset
* @param float $similarity
*/
public function subimageMatch(Imagick $image, &$offset = null, &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {}
/**
* @alias Imagick::subimageMatch
* @param array $offset
* @param float $similarity
*/
public function similarityImage(Imagick $image, &$offset = null, &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {}
#endif
public static function setRegistry(string $key, string $value): bool {}
public static function getRegistry(string $key): string|false {}
public static function listRegistry(): array {}
#if MagickLibVersion >= 0x680
public function morphology(
int $morphology, // MORPHOLOGY_*
int $iterations,
ImagickKernel $kernel,
int $channel = Imagick::CHANNEL_DEFAULT
): bool {}
#endif
#ifdef IMAGICK_WITH_KERNEL
#if MagickLibVersion < 0x700
/** @deprecated */
public function filter(ImagickKernel $kernel, int $channel = Imagick::CHANNEL_UNDEFINED): bool {}
#endif
#endif
public function setAntialias(bool $antialias): void {}
public function getAntialias(): bool {}
#if MagickLibVersion > 0x676
/**
* $color_correction_collection example:
* <ColorCorrectionCollection xmlns="urn:ASC:CDL:v1.2">
* <ColorCorrection id="cc03345">
* <SOPNode>
* <Slope> 0.9 1.2 0.5 </Slope>
* <Offset> 0.4 -0.5 0.6 </Offset>
* <Power> 1.0 0.8 1.5 </Power>
* </SOPNode>
* <SATNode>
* <Saturation> 0.85 </Saturation>
* </SATNode>
* </ColorCorrection>
* </ColorCorrectionCollection>
*
*/
public function colorDecisionListImage(string $color_correction_collection): bool {}
#endif
#if MagickLibVersion >= 0x687
public function optimizeImageTransparency(): void {}
#endif
#if MagickLibVersion >= 0x660
public function autoGammaImage(?int $channel = Imagick::CHANNEL_ALL): void {}
#endif
#if MagickLibVersion >= 0x692
public function autoOrient(): void {}
/** @alias Imagick::autoOrient */
public function autoOrientate(): void {}
// COMPOSITE_*
public function compositeImageGravity(Imagick $image, int $composite_constant, int $gravity): bool {}
#endif
#if MagickLibVersion >= 0x693
public function localContrastImage(float $radius, float $strength): bool {}
#endif
#if MagickLibVersion >= 0x700
// Identifies the potential image type, returns one of the Imagick::IMGTYPE_* constants
public function identifyImageType(): int {}
#endif
#if IM_HAVE_IMAGICK_GETSETIMAGEMASK
// PIXELMASK_*
public function getImageMask(int $pixelmask): ?Imagick {}
// PIXELMASK_*
public function setImageMask(Imagick $clip_mask, int $pixelmask): void {}
#endif
// TODO - needs deleting from docs.
// public function getImageMagickLicense(): string {}
// TODO - needs deleting from docs.
// public function render(): bool {}
// public function floodfillPaintImage(
// ImagickPixel|string $fill,
// float $fuzz,
// ImagickPixel|string $bordercolor,
// int $x,
// int $y,
// bool $invert,
// int $channel = Imagick::CHANNEL_DEFAULT): null {}
#if IM_HAVE_IMAGICK_CANNYEDGEIMAGE
public function cannyEdgeImage(
float $radius,
float $sigma,
float $lower_percent,
float $upper_percent
): bool {}
#endif
#if IM_HAVE_IMAGICK_SETSEED
public static function setSeed(int $seed): void {}
#endif
#if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE
public function waveletDenoiseImage(float $threshold, float $softness): bool {}
#endif
#if IM_HAVE_IMAGICK_MEANSHIFTIMAGE
public function meanShiftImage(
int $width,
int $height,
float $color_distance
): bool {}
#endif
#if IM_HAVE_IMAGICK_KMEANSIMAGE
public function kmeansImage(
int $number_colors,
int $max_iterations,
float $tolerance
): bool {}
#endif
#if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE
public function rangeThresholdImage(
float $low_black,
float $low_white,
float $high_white,
float $high_black
): bool {}
#endif
#if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE
// AUTO_THRESHOLD_*
public function autoThresholdImage(int $auto_threshold_method): bool {}
#endif
#if IM_HAVE_IMAGICK_BILATERALBLURIMAGE
public function bilateralBlurImage(
float $radius,
float $sigma,
float $intensity_sigma,
float $spatial_sigma
): bool {}
#endif
#if IM_HAVE_IMAGICK_CLAHEIMAGE
public function claheImage(
int $width,
int $height,
int $number_bins,
float $clip_limit
): bool {}
#endif
#if IM_HAVE_IMAGICK_CHANNELFXIMAGE
// MagickChannelFxImage() applies a channel expression to the specified image.
// The expression consists of one or more channels, either mnemonic or numeric
// (e.g. red, 1), separated by actions as follows:
//
// <=> exchange two channels (e.g. red<=>blue)
// => transfer a channel to another (e.g. red=>green)
// , separate channel operations (e.g. red, green)
// | read channels from next input image (e.g. red | green)
// ; write channels to next output image (e.g. red; green; blue)
public function channelFxImage(string $expression): Imagick {}
#endif
#if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE
public function colorThresholdImage(
ImagickPixel|string $start_color,
ImagickPixel|string $stop_color
): bool {}
#endif
#if IM_HAVE_IMAGICK_COMPLEXIMAGES
// COMPLEX_OPERATOR_
public function complexImages(int $complex_operator): Imagick {}
#endif
#if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE
public function interpolativeResizeImage(
int $columns,
int $rows,
int $interpolate // INTERPOLATE_
): bool {}
#endif
#if IM_HAVE_IMAGICK_LEVELIMAGECOLORS
public function levelImageColors(
ImagickPixel|string $black_color,
ImagickPixel|string $white_color,
bool $invert
): bool {}
#endif
#if IM_HAVE_IMAGICK_LEVELIZEIMAGE
public function levelizeImage(
float $black_point,
float $gamma,
float $white_point
): bool {}
#endif
//For example: "o3x3,6" generates a 6 level posterization of the image
// with a ordered 3x3 diffused pixel dither being applied between each
// level. While checker,8,8,4 will produce a 332 colormaped image with
// only a single checkerboard hash pattern (50% grey) between each color
// level, to basically double the number of color levels with a bare
// minimim of dithering.
#if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE
public function orderedDitherImage(string $dither_format): bool {}
#endif
#if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE
public function whiteBalanceImage(): bool {}
#endif
#if IM_HAVE_IMAGICK_DELETE_OPTION
public function deleteOption(string $option): bool {}
#endif
#if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR
public function getBackgroundColor(): ImagickPixel {}
#endif
#if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS
/**
* @return string[]
*/
public function getImageArtifacts(string $pattern = "*"): array {}
#endif
#if IM_HAVE_IMAGICK_GET_IMAGE_DISTORTIONS
/**
* metric - MetricType_
* @return float[]
*/
// public function getImageDistortions(int $metric): array{}
// for (j=0; j <= MaxPixelChannels; j++)
// distortion[j]+=channel_distortion[j];
// Use MagickRelinquishMemory() to free the metrics when you are done with them.
#endif
#if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS
/**
* return [kurtosis:float,skewness: float]
*/
public function getImageKurtosis(): array {}
#endif
#if IM_HAVE_IMAGICK_GET_IMAGE_MEAN
/**
* return [$mean, $standard_deviation]
*/
public function getImageMean(): array {}
#endif
#if IM_HAVE_IMAGICK_GET_IMAGE_RANGE
/**
* return [minima, float $maxima]
*/
public function getImageRange(): array {}
#endif
#if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD
/**
* return int - PixelInterpolateMethod
*/
public function getInterpolateMethod(): int {}
#endif
#if IM_HAVE_IMAGICK_GET_OPTIONS
/**
* return string[]
*/
public function getOptions(string $pattern = "*"): array {}
#endif
#if IM_HAVE_IMAGICK_GET_ORIENTATION
/**
* return int OrientationType
*/
public function getOrientation(): int {}
#endif
#if IM_HAVE_IMAGICK_GET_RESOLUTION
/**
* return [x: float, y: float]
*/
public function getResolution(): array {}
#endif
#if IM_HAVE_IMAGICK_GET_TYPE
/**
* return ImageType
*/
public function getType(): int {}
#endif
#if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE
//% o number_terms: the number of terms in the list. The actual list length
//% is 2 x number_terms + 1 (the constant).
public function polynomialImage(array $terms): bool {}
#endif
#if IM_HAVE_IMAGICK_SET_DEPTH
public function setDepth(int $depth): bool {}
#endif
#if IM_HAVE_IMAGICK_SET_EXTRACT
//% MagickSetExtract() sets the extract geometry before you read or write an
//% image file. Use it for inline cropping (e.g. 200x200+0+0) or resizing
//% (e.g.200x200).
public function setExtract(string $geometry): bool {}
#endif
#if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD
/**
* int $method - PixelInterpolateMethod
*/
public function setInterpolateMethod(int $method): bool{}
#endif
#if IM_HAVE_IMAGICK_SET_ORIENTATION
/**
* $orientation - OrientationType
*/
public function setOrientation(int $orientation): bool {}
#endif
}
|