forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimagick.php
7338 lines (6777 loc) · 251 KB
/
imagick.php
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
<?php
// Start of imagick v.3.4.3
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Pure;
class ImagickException extends Exception {}
class ImagickDrawException extends Exception {}
class ImagickPixelIteratorException extends Exception {}
class ImagickPixelException extends Exception {}
class ImagickKernelException extends Exception {}
/**
* @method Imagick clone() (PECL imagick 2.0.0)<br/>Makes an exact copy of the Imagick object
* @link https://php.net/manual/en/class.imagick.php
*/
class Imagick implements Iterator, Countable
{
public const COLOR_BLACK = 11;
public const COLOR_BLUE = 12;
public const COLOR_CYAN = 13;
public const COLOR_GREEN = 14;
public const COLOR_RED = 15;
public const COLOR_YELLOW = 16;
public const COLOR_MAGENTA = 17;
public const COLOR_OPACITY = 18;
public const COLOR_ALPHA = 19;
public const COLOR_FUZZ = 20;
public const IMAGICK_EXTNUM = 30403;
public const IMAGICK_EXTVER = "3.4.3";
public const QUANTUM_RANGE = 65535;
public const USE_ZEND_MM = 0;
public const COMPOSITE_DEFAULT = 40;
public const COMPOSITE_UNDEFINED = 0;
public const COMPOSITE_NO = 1;
public const COMPOSITE_ADD = 2;
public const COMPOSITE_ATOP = 3;
public const COMPOSITE_BLEND = 4;
public const COMPOSITE_BUMPMAP = 5;
public const COMPOSITE_CLEAR = 7;
public const COMPOSITE_COLORBURN = 8;
public const COMPOSITE_COLORDODGE = 9;
public const COMPOSITE_COLORIZE = 10;
public const COMPOSITE_COPYBLACK = 11;
public const COMPOSITE_COPYBLUE = 12;
public const COMPOSITE_COPY = 13;
public const COMPOSITE_COPYCYAN = 14;
public const COMPOSITE_COPYGREEN = 15;
public const COMPOSITE_COPYMAGENTA = 16;
public const COMPOSITE_COPYOPACITY = 17;
public const COMPOSITE_COPYRED = 18;
public const COMPOSITE_COPYYELLOW = 19;
public const COMPOSITE_DARKEN = 20;
public const COMPOSITE_DSTATOP = 21;
public const COMPOSITE_DST = 22;
public const COMPOSITE_DSTIN = 23;
public const COMPOSITE_DSTOUT = 24;
public const COMPOSITE_DSTOVER = 25;
public const COMPOSITE_DIFFERENCE = 26;
public const COMPOSITE_DISPLACE = 27;
public const COMPOSITE_DISSOLVE = 28;
public const COMPOSITE_EXCLUSION = 29;
public const COMPOSITE_HARDLIGHT = 30;
public const COMPOSITE_HUE = 31;
public const COMPOSITE_IN = 32;
public const COMPOSITE_LIGHTEN = 33;
public const COMPOSITE_LUMINIZE = 35;
public const COMPOSITE_MINUS = 36;
public const COMPOSITE_MODULATE = 37;
public const COMPOSITE_MULTIPLY = 38;
public const COMPOSITE_OUT = 39;
public const COMPOSITE_OVER = 40;
public const COMPOSITE_OVERLAY = 41;
public const COMPOSITE_PLUS = 42;
public const COMPOSITE_REPLACE = 43;
public const COMPOSITE_SATURATE = 44;
public const COMPOSITE_SCREEN = 45;
public const COMPOSITE_SOFTLIGHT = 46;
public const COMPOSITE_SRCATOP = 47;
public const COMPOSITE_SRC = 48;
public const COMPOSITE_SRCIN = 49;
public const COMPOSITE_SRCOUT = 50;
public const COMPOSITE_SRCOVER = 51;
public const COMPOSITE_SUBTRACT = 52;
public const COMPOSITE_THRESHOLD = 53;
public const COMPOSITE_XOR = 54;
public const COMPOSITE_CHANGEMASK = 6;
public const COMPOSITE_LINEARLIGHT = 34;
public const COMPOSITE_DIVIDE = 55;
public const COMPOSITE_DISTORT = 56;
public const COMPOSITE_BLUR = 57;
public const COMPOSITE_PEGTOPLIGHT = 58;
public const COMPOSITE_VIVIDLIGHT = 59;
public const COMPOSITE_PINLIGHT = 60;
public const COMPOSITE_LINEARDODGE = 61;
public const COMPOSITE_LINEARBURN = 62;
public const COMPOSITE_MATHEMATICS = 63;
public const COMPOSITE_MODULUSADD = 2;
public const COMPOSITE_MODULUSSUBTRACT = 52;
public const COMPOSITE_MINUSDST = 36;
public const COMPOSITE_DIVIDEDST = 55;
public const COMPOSITE_DIVIDESRC = 64;
public const COMPOSITE_MINUSSRC = 65;
public const COMPOSITE_DARKENINTENSITY = 66;
public const COMPOSITE_LIGHTENINTENSITY = 67;
public const MONTAGEMODE_FRAME = 1;
public const MONTAGEMODE_UNFRAME = 2;
public const MONTAGEMODE_CONCATENATE = 3;
public const STYLE_NORMAL = 1;
public const STYLE_ITALIC = 2;
public const STYLE_OBLIQUE = 3;
public const STYLE_ANY = 4;
public const FILTER_UNDEFINED = 0;
public const FILTER_POINT = 1;
public const FILTER_BOX = 2;
public const FILTER_TRIANGLE = 3;
public const FILTER_HERMITE = 4;
public const FILTER_HANNING = 5;
public const FILTER_HAMMING = 6;
public const FILTER_BLACKMAN = 7;
public const FILTER_GAUSSIAN = 8;
public const FILTER_QUADRATIC = 9;
public const FILTER_CUBIC = 10;
public const FILTER_CATROM = 11;
public const FILTER_MITCHELL = 12;
public const FILTER_LANCZOS = 22;
public const FILTER_BESSEL = 13;
public const FILTER_SINC = 14;
public const FILTER_KAISER = 16;
public const FILTER_WELSH = 17;
public const FILTER_PARZEN = 18;
public const FILTER_LAGRANGE = 21;
public const FILTER_SENTINEL = 31;
public const FILTER_BOHMAN = 19;
public const FILTER_BARTLETT = 20;
public const FILTER_JINC = 13;
public const FILTER_SINCFAST = 15;
public const FILTER_ROBIDOUX = 26;
public const FILTER_LANCZOSSHARP = 23;
public const FILTER_LANCZOS2 = 24;
public const FILTER_LANCZOS2SHARP = 25;
public const FILTER_ROBIDOUXSHARP = 27;
public const FILTER_COSINE = 28;
public const FILTER_SPLINE = 29;
public const FILTER_LANCZOSRADIUS = 30;
public const IMGTYPE_UNDEFINED = 0;
public const IMGTYPE_BILEVEL = 1;
public const IMGTYPE_GRAYSCALE = 2;
public const IMGTYPE_GRAYSCALEMATTE = 3;
public const IMGTYPE_PALETTE = 4;
public const IMGTYPE_PALETTEMATTE = 5;
public const IMGTYPE_TRUECOLOR = 6;
public const IMGTYPE_TRUECOLORMATTE = 7;
public const IMGTYPE_COLORSEPARATION = 8;
public const IMGTYPE_COLORSEPARATIONMATTE = 9;
public const IMGTYPE_OPTIMIZE = 10;
public const IMGTYPE_PALETTEBILEVELMATTE = 11;
public const RESOLUTION_UNDEFINED = 0;
public const RESOLUTION_PIXELSPERINCH = 1;
public const RESOLUTION_PIXELSPERCENTIMETER = 2;
public const COMPRESSION_UNDEFINED = 0;
public const COMPRESSION_NO = 1;
public const COMPRESSION_BZIP = 2;
public const COMPRESSION_FAX = 6;
public const COMPRESSION_GROUP4 = 7;
public const COMPRESSION_JPEG = 8;
public const COMPRESSION_JPEG2000 = 9;
public const COMPRESSION_LOSSLESSJPEG = 10;
public const COMPRESSION_LZW = 11;
public const COMPRESSION_RLE = 12;
public const COMPRESSION_ZIP = 13;
public const COMPRESSION_DXT1 = 3;
public const COMPRESSION_DXT3 = 4;
public const COMPRESSION_DXT5 = 5;
public const COMPRESSION_ZIPS = 14;
public const COMPRESSION_PIZ = 15;
public const COMPRESSION_PXR24 = 16;
public const COMPRESSION_B44 = 17;
public const COMPRESSION_B44A = 18;
public const COMPRESSION_LZMA = 19;
public const COMPRESSION_JBIG1 = 20;
public const COMPRESSION_JBIG2 = 21;
public const PAINT_POINT = 1;
public const PAINT_REPLACE = 2;
public const PAINT_FLOODFILL = 3;
public const PAINT_FILLTOBORDER = 4;
public const PAINT_RESET = 5;
public const GRAVITY_NORTHWEST = 1;
public const GRAVITY_NORTH = 2;
public const GRAVITY_NORTHEAST = 3;
public const GRAVITY_WEST = 4;
public const GRAVITY_CENTER = 5;
public const GRAVITY_EAST = 6;
public const GRAVITY_SOUTHWEST = 7;
public const GRAVITY_SOUTH = 8;
public const GRAVITY_SOUTHEAST = 9;
public const GRAVITY_FORGET = 0;
public const GRAVITY_STATIC = 10;
public const STRETCH_NORMAL = 1;
public const STRETCH_ULTRACONDENSED = 2;
public const STRETCH_EXTRACONDENSED = 3;
public const STRETCH_CONDENSED = 4;
public const STRETCH_SEMICONDENSED = 5;
public const STRETCH_SEMIEXPANDED = 6;
public const STRETCH_EXPANDED = 7;
public const STRETCH_EXTRAEXPANDED = 8;
public const STRETCH_ULTRAEXPANDED = 9;
public const STRETCH_ANY = 10;
public const ALIGN_UNDEFINED = 0;
public const ALIGN_LEFT = 1;
public const ALIGN_CENTER = 2;
public const ALIGN_RIGHT = 3;
public const DECORATION_NO = 1;
public const DECORATION_UNDERLINE = 2;
public const DECORATION_OVERLINE = 3;
public const DECORATION_LINETROUGH = 4;
public const DECORATION_LINETHROUGH = 4;
public const NOISE_UNIFORM = 1;
public const NOISE_GAUSSIAN = 2;
public const NOISE_MULTIPLICATIVEGAUSSIAN = 3;
public const NOISE_IMPULSE = 4;
public const NOISE_LAPLACIAN = 5;
public const NOISE_POISSON = 6;
public const NOISE_RANDOM = 7;
public const CHANNEL_UNDEFINED = 0;
public const CHANNEL_RED = 1;
public const CHANNEL_GRAY = 1;
public const CHANNEL_CYAN = 1;
public const CHANNEL_GREEN = 2;
public const CHANNEL_MAGENTA = 2;
public const CHANNEL_BLUE = 4;
public const CHANNEL_YELLOW = 4;
public const CHANNEL_ALPHA = 8;
public const CHANNEL_OPACITY = 8;
public const CHANNEL_MATTE = 8;
public const CHANNEL_BLACK = 32;
public const CHANNEL_INDEX = 32;
public const CHANNEL_ALL = 134217727;
public const CHANNEL_DEFAULT = 134217719;
public const CHANNEL_RGBA = 15;
public const CHANNEL_TRUEALPHA = 64;
public const CHANNEL_RGBS = 128;
public const CHANNEL_GRAY_CHANNELS = 128;
public const CHANNEL_SYNC = 256;
public const CHANNEL_COMPOSITES = 47;
public const METRIC_UNDEFINED = 0;
public const METRIC_ABSOLUTEERRORMETRIC = 1;
public const METRIC_MEANABSOLUTEERROR = 2;
public const METRIC_MEANERRORPERPIXELMETRIC = 3;
public const METRIC_MEANSQUAREERROR = 4;
public const METRIC_PEAKABSOLUTEERROR = 5;
public const METRIC_PEAKSIGNALTONOISERATIO = 6;
public const METRIC_ROOTMEANSQUAREDERROR = 7;
public const METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC = 8;
public const METRIC_FUZZERROR = 9;
public const PIXEL_CHAR = 1;
public const PIXEL_DOUBLE = 2;
public const PIXEL_FLOAT = 3;
public const PIXEL_INTEGER = 4;
public const PIXEL_LONG = 5;
public const PIXEL_QUANTUM = 6;
public const PIXEL_SHORT = 7;
public const EVALUATE_UNDEFINED = 0;
public const EVALUATE_ADD = 1;
public const EVALUATE_AND = 2;
public const EVALUATE_DIVIDE = 3;
public const EVALUATE_LEFTSHIFT = 4;
public const EVALUATE_MAX = 5;
public const EVALUATE_MIN = 6;
public const EVALUATE_MULTIPLY = 7;
public const EVALUATE_OR = 8;
public const EVALUATE_RIGHTSHIFT = 9;
public const EVALUATE_SET = 10;
public const EVALUATE_SUBTRACT = 11;
public const EVALUATE_XOR = 12;
public const EVALUATE_POW = 13;
public const EVALUATE_LOG = 14;
public const EVALUATE_THRESHOLD = 15;
public const EVALUATE_THRESHOLDBLACK = 16;
public const EVALUATE_THRESHOLDWHITE = 17;
public const EVALUATE_GAUSSIANNOISE = 18;
public const EVALUATE_IMPULSENOISE = 19;
public const EVALUATE_LAPLACIANNOISE = 20;
public const EVALUATE_MULTIPLICATIVENOISE = 21;
public const EVALUATE_POISSONNOISE = 22;
public const EVALUATE_UNIFORMNOISE = 23;
public const EVALUATE_COSINE = 24;
public const EVALUATE_SINE = 25;
public const EVALUATE_ADDMODULUS = 26;
public const EVALUATE_MEAN = 27;
public const EVALUATE_ABS = 28;
public const EVALUATE_EXPONENTIAL = 29;
public const EVALUATE_MEDIAN = 30;
public const EVALUATE_SUM = 31;
public const COLORSPACE_UNDEFINED = 0;
public const COLORSPACE_RGB = 1;
public const COLORSPACE_GRAY = 2;
public const COLORSPACE_TRANSPARENT = 3;
public const COLORSPACE_OHTA = 4;
public const COLORSPACE_LAB = 5;
public const COLORSPACE_XYZ = 6;
public const COLORSPACE_YCBCR = 7;
public const COLORSPACE_YCC = 8;
public const COLORSPACE_YIQ = 9;
public const COLORSPACE_YPBPR = 10;
public const COLORSPACE_YUV = 11;
public const COLORSPACE_CMYK = 12;
public const COLORSPACE_SRGB = 13;
public const COLORSPACE_HSB = 14;
public const COLORSPACE_HSL = 15;
public const COLORSPACE_HWB = 16;
public const COLORSPACE_REC601LUMA = 17;
public const COLORSPACE_REC709LUMA = 19;
public const COLORSPACE_LOG = 21;
public const COLORSPACE_CMY = 22;
public const COLORSPACE_LUV = 23;
public const COLORSPACE_HCL = 24;
public const COLORSPACE_LCH = 25;
public const COLORSPACE_LMS = 26;
public const COLORSPACE_LCHAB = 27;
public const COLORSPACE_LCHUV = 28;
public const COLORSPACE_SCRGB = 29;
public const COLORSPACE_HSI = 30;
public const COLORSPACE_HSV = 31;
public const COLORSPACE_HCLP = 32;
public const COLORSPACE_YDBDR = 33;
public const COLORSPACE_REC601YCBCR = 18;
public const COLORSPACE_REC709YCBCR = 20;
public const VIRTUALPIXELMETHOD_UNDEFINED = 0;
public const VIRTUALPIXELMETHOD_BACKGROUND = 1;
public const VIRTUALPIXELMETHOD_CONSTANT = 2;
public const VIRTUALPIXELMETHOD_EDGE = 4;
public const VIRTUALPIXELMETHOD_MIRROR = 5;
public const VIRTUALPIXELMETHOD_TILE = 7;
public const VIRTUALPIXELMETHOD_TRANSPARENT = 8;
public const VIRTUALPIXELMETHOD_MASK = 9;
public const VIRTUALPIXELMETHOD_BLACK = 10;
public const VIRTUALPIXELMETHOD_GRAY = 11;
public const VIRTUALPIXELMETHOD_WHITE = 12;
public const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13;
public const VIRTUALPIXELMETHOD_VERTICALTILE = 14;
public const VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE = 15;
public const VIRTUALPIXELMETHOD_VERTICALTILEEDGE = 16;
public const VIRTUALPIXELMETHOD_CHECKERTILE = 17;
public const PREVIEW_UNDEFINED = 0;
public const PREVIEW_ROTATE = 1;
public const PREVIEW_SHEAR = 2;
public const PREVIEW_ROLL = 3;
public const PREVIEW_HUE = 4;
public const PREVIEW_SATURATION = 5;
public const PREVIEW_BRIGHTNESS = 6;
public const PREVIEW_GAMMA = 7;
public const PREVIEW_SPIFF = 8;
public const PREVIEW_DULL = 9;
public const PREVIEW_GRAYSCALE = 10;
public const PREVIEW_QUANTIZE = 11;
public const PREVIEW_DESPECKLE = 12;
public const PREVIEW_REDUCENOISE = 13;
public const PREVIEW_ADDNOISE = 14;
public const PREVIEW_SHARPEN = 15;
public const PREVIEW_BLUR = 16;
public const PREVIEW_THRESHOLD = 17;
public const PREVIEW_EDGEDETECT = 18;
public const PREVIEW_SPREAD = 19;
public const PREVIEW_SOLARIZE = 20;
public const PREVIEW_SHADE = 21;
public const PREVIEW_RAISE = 22;
public const PREVIEW_SEGMENT = 23;
public const PREVIEW_SWIRL = 24;
public const PREVIEW_IMPLODE = 25;
public const PREVIEW_WAVE = 26;
public const PREVIEW_OILPAINT = 27;
public const PREVIEW_CHARCOALDRAWING = 28;
public const PREVIEW_JPEG = 29;
public const RENDERINGINTENT_UNDEFINED = 0;
public const RENDERINGINTENT_SATURATION = 1;
public const RENDERINGINTENT_PERCEPTUAL = 2;
public const RENDERINGINTENT_ABSOLUTE = 3;
public const RENDERINGINTENT_RELATIVE = 4;
public const INTERLACE_UNDEFINED = 0;
public const INTERLACE_NO = 1;
public const INTERLACE_LINE = 2;
public const INTERLACE_PLANE = 3;
public const INTERLACE_PARTITION = 4;
public const INTERLACE_GIF = 5;
public const INTERLACE_JPEG = 6;
public const INTERLACE_PNG = 7;
public const FILLRULE_UNDEFINED = 0;
public const FILLRULE_EVENODD = 1;
public const FILLRULE_NONZERO = 2;
public const PATHUNITS_UNDEFINED = 0;
public const PATHUNITS_USERSPACE = 1;
public const PATHUNITS_USERSPACEONUSE = 2;
public const PATHUNITS_OBJECTBOUNDINGBOX = 3;
public const LINECAP_UNDEFINED = 0;
public const LINECAP_BUTT = 1;
public const LINECAP_ROUND = 2;
public const LINECAP_SQUARE = 3;
public const LINEJOIN_UNDEFINED = 0;
public const LINEJOIN_MITER = 1;
public const LINEJOIN_ROUND = 2;
public const LINEJOIN_BEVEL = 3;
public const RESOURCETYPE_UNDEFINED = 0;
public const RESOURCETYPE_AREA = 1;
public const RESOURCETYPE_DISK = 2;
public const RESOURCETYPE_FILE = 3;
public const RESOURCETYPE_MAP = 4;
public const RESOURCETYPE_MEMORY = 5;
public const RESOURCETYPE_TIME = 7;
public const RESOURCETYPE_THROTTLE = 8;
public const RESOURCETYPE_THREAD = 6;
public const DISPOSE_UNRECOGNIZED = 0;
public const DISPOSE_UNDEFINED = 0;
public const DISPOSE_NONE = 1;
public const DISPOSE_BACKGROUND = 2;
public const DISPOSE_PREVIOUS = 3;
public const INTERPOLATE_UNDEFINED = 0;
public const INTERPOLATE_AVERAGE = 1;
public const INTERPOLATE_BICUBIC = 2;
public const INTERPOLATE_BILINEAR = 3;
public const INTERPOLATE_FILTER = 4;
public const INTERPOLATE_INTEGER = 5;
public const INTERPOLATE_MESH = 6;
public const INTERPOLATE_NEARESTNEIGHBOR = 7;
public const INTERPOLATE_SPLINE = 8;
public const LAYERMETHOD_UNDEFINED = 0;
public const LAYERMETHOD_COALESCE = 1;
public const LAYERMETHOD_COMPAREANY = 2;
public const LAYERMETHOD_COMPARECLEAR = 3;
public const LAYERMETHOD_COMPAREOVERLAY = 4;
public const LAYERMETHOD_DISPOSE = 5;
public const LAYERMETHOD_OPTIMIZE = 6;
public const LAYERMETHOD_OPTIMIZEPLUS = 8;
public const LAYERMETHOD_OPTIMIZETRANS = 9;
public const LAYERMETHOD_COMPOSITE = 12;
public const LAYERMETHOD_OPTIMIZEIMAGE = 7;
public const LAYERMETHOD_REMOVEDUPS = 10;
public const LAYERMETHOD_REMOVEZERO = 11;
public const LAYERMETHOD_TRIMBOUNDS = 16;
public const ORIENTATION_UNDEFINED = 0;
public const ORIENTATION_TOPLEFT = 1;
public const ORIENTATION_TOPRIGHT = 2;
public const ORIENTATION_BOTTOMRIGHT = 3;
public const ORIENTATION_BOTTOMLEFT = 4;
public const ORIENTATION_LEFTTOP = 5;
public const ORIENTATION_RIGHTTOP = 6;
public const ORIENTATION_RIGHTBOTTOM = 7;
public const ORIENTATION_LEFTBOTTOM = 8;
public const DISTORTION_UNDEFINED = 0;
public const DISTORTION_AFFINE = 1;
public const DISTORTION_AFFINEPROJECTION = 2;
public const DISTORTION_ARC = 9;
public const DISTORTION_BILINEAR = 6;
public const DISTORTION_PERSPECTIVE = 4;
public const DISTORTION_PERSPECTIVEPROJECTION = 5;
public const DISTORTION_SCALEROTATETRANSLATE = 3;
public const DISTORTION_POLYNOMIAL = 8;
public const DISTORTION_POLAR = 10;
public const DISTORTION_DEPOLAR = 11;
public const DISTORTION_BARREL = 14;
public const DISTORTION_SHEPARDS = 16;
public const DISTORTION_SENTINEL = 18;
public const DISTORTION_BARRELINVERSE = 15;
public const DISTORTION_BILINEARFORWARD = 6;
public const DISTORTION_BILINEARREVERSE = 7;
public const DISTORTION_RESIZE = 17;
public const DISTORTION_CYLINDER2PLANE = 12;
public const DISTORTION_PLANE2CYLINDER = 13;
public const LAYERMETHOD_MERGE = 13;
public const LAYERMETHOD_FLATTEN = 14;
public const LAYERMETHOD_MOSAIC = 15;
public const ALPHACHANNEL_ACTIVATE = 1;
public const ALPHACHANNEL_RESET = 7;
public const ALPHACHANNEL_SET = 8;
public const ALPHACHANNEL_UNDEFINED = 0;
public const ALPHACHANNEL_COPY = 3;
public const ALPHACHANNEL_DEACTIVATE = 4;
public const ALPHACHANNEL_EXTRACT = 5;
public const ALPHACHANNEL_OPAQUE = 6;
public const ALPHACHANNEL_SHAPE = 9;
public const ALPHACHANNEL_TRANSPARENT = 10;
public const SPARSECOLORMETHOD_UNDEFINED = 0;
public const SPARSECOLORMETHOD_BARYCENTRIC = 1;
public const SPARSECOLORMETHOD_BILINEAR = 7;
public const SPARSECOLORMETHOD_POLYNOMIAL = 8;
public const SPARSECOLORMETHOD_SPEPARDS = 16;
public const SPARSECOLORMETHOD_VORONOI = 18;
public const SPARSECOLORMETHOD_INVERSE = 19;
public const DITHERMETHOD_UNDEFINED = 0;
public const DITHERMETHOD_NO = 1;
public const DITHERMETHOD_RIEMERSMA = 2;
public const DITHERMETHOD_FLOYDSTEINBERG = 3;
public const FUNCTION_UNDEFINED = 0;
public const FUNCTION_POLYNOMIAL = 1;
public const FUNCTION_SINUSOID = 2;
public const ALPHACHANNEL_BACKGROUND = 2;
public const FUNCTION_ARCSIN = 3;
public const FUNCTION_ARCTAN = 4;
public const ALPHACHANNEL_FLATTEN = 11;
public const ALPHACHANNEL_REMOVE = 12;
public const STATISTIC_GRADIENT = 1;
public const STATISTIC_MAXIMUM = 2;
public const STATISTIC_MEAN = 3;
public const STATISTIC_MEDIAN = 4;
public const STATISTIC_MINIMUM = 5;
public const STATISTIC_MODE = 6;
public const STATISTIC_NONPEAK = 7;
public const STATISTIC_STANDARD_DEVIATION = 8;
public const MORPHOLOGY_CONVOLVE = 1;
public const MORPHOLOGY_CORRELATE = 2;
public const MORPHOLOGY_ERODE = 3;
public const MORPHOLOGY_DILATE = 4;
public const MORPHOLOGY_ERODE_INTENSITY = 5;
public const MORPHOLOGY_DILATE_INTENSITY = 6;
public const MORPHOLOGY_DISTANCE = 7;
public const MORPHOLOGY_OPEN = 8;
public const MORPHOLOGY_CLOSE = 9;
public const MORPHOLOGY_OPEN_INTENSITY = 10;
public const MORPHOLOGY_CLOSE_INTENSITY = 11;
public const MORPHOLOGY_SMOOTH = 12;
public const MORPHOLOGY_EDGE_IN = 13;
public const MORPHOLOGY_EDGE_OUT = 14;
public const MORPHOLOGY_EDGE = 15;
public const MORPHOLOGY_TOP_HAT = 16;
public const MORPHOLOGY_BOTTOM_HAT = 17;
public const MORPHOLOGY_HIT_AND_MISS = 18;
public const MORPHOLOGY_THINNING = 19;
public const MORPHOLOGY_THICKEN = 20;
public const MORPHOLOGY_VORONOI = 21;
public const MORPHOLOGY_ITERATIVE = 22;
public const KERNEL_UNITY = 1;
public const KERNEL_GAUSSIAN = 2;
public const KERNEL_DIFFERENCE_OF_GAUSSIANS = 3;
public const KERNEL_LAPLACIAN_OF_GAUSSIANS = 4;
public const KERNEL_BLUR = 5;
public const KERNEL_COMET = 6;
public const KERNEL_LAPLACIAN = 7;
public const KERNEL_SOBEL = 8;
public const KERNEL_FREI_CHEN = 9;
public const KERNEL_ROBERTS = 10;
public const KERNEL_PREWITT = 11;
public const KERNEL_COMPASS = 12;
public const KERNEL_KIRSCH = 13;
public const KERNEL_DIAMOND = 14;
public const KERNEL_SQUARE = 15;
public const KERNEL_RECTANGLE = 16;
public const KERNEL_OCTAGON = 17;
public const KERNEL_DISK = 18;
public const KERNEL_PLUS = 19;
public const KERNEL_CROSS = 20;
public const KERNEL_RING = 21;
public const KERNEL_PEAKS = 22;
public const KERNEL_EDGES = 23;
public const KERNEL_CORNERS = 24;
public const KERNEL_DIAGONALS = 25;
public const KERNEL_LINE_ENDS = 26;
public const KERNEL_LINE_JUNCTIONS = 27;
public const KERNEL_RIDGES = 28;
public const KERNEL_CONVEX_HULL = 29;
public const KERNEL_THIN_SE = 30;
public const KERNEL_SKELETON = 31;
public const KERNEL_CHEBYSHEV = 32;
public const KERNEL_MANHATTAN = 33;
public const KERNEL_OCTAGONAL = 34;
public const KERNEL_EUCLIDEAN = 35;
public const KERNEL_USER_DEFINED = 36;
public const KERNEL_BINOMIAL = 37;
public const DIRECTION_LEFT_TO_RIGHT = 2;
public const DIRECTION_RIGHT_TO_LEFT = 1;
public const NORMALIZE_KERNEL_NONE = 0;
public const NORMALIZE_KERNEL_VALUE = 8192;
public const NORMALIZE_KERNEL_CORRELATE = 65536;
public const NORMALIZE_KERNEL_PERCENT = 4096;
/**
* (PECL imagick 2.0.0)<br/>
* Removes repeated portions of images to optimize
* @link https://php.net/manual/en/imagick.optimizeimagelayers.php
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function optimizeImageLayers() {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the maximum bounding region between images
* @link https://php.net/manual/en/imagick.compareimagelayers.php
* @param int $method <p>
* One of the layer method constants.
* </p>
* @return Imagick <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function compareImageLayers($method) {}
/**
* (PECL imagick 2.0.0)<br/>
* Quickly fetch attributes
* @link https://php.net/manual/en/imagick.pingimageblob.php
* @param string $image <p>
* A string containing the image.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function pingImageBlob($image) {}
/**
* (PECL imagick 2.0.0)<br/>
* Get basic image attributes in a lightweight manner
* @link https://php.net/manual/en/imagick.pingimagefile.php
* @param resource $filehandle <p>
* An open filehandle to the image.
* </p>
* @param string $fileName [optional] <p>
* Optional filename for this image.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function pingImageFile($filehandle, $fileName = null) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a vertical mirror image
* @link https://php.net/manual/en/imagick.transposeimage.php
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function transposeImage() {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a horizontal mirror image
* @link https://php.net/manual/en/imagick.transverseimage.php
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function transverseImage() {}
/**
* (PECL imagick 2.0.0)<br/>
* Remove edges from the image
* @link https://php.net/manual/en/imagick.trimimage.php
* @param float $fuzz <p>
* By default target must match a particular pixel color exactly.
* However, in many cases two colors may differ by a small amount.
* The fuzz member of image defines how much tolerance is acceptable
* to consider two colors as the same. This parameter represents the variation
* on the quantum range.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function trimImage($fuzz) {}
/**
* (PECL imagick 2.0.0)<br/>
* Applies wave filter to the image
* @link https://php.net/manual/en/imagick.waveimage.php
* @param float $amplitude <p>
* The amplitude of the wave.
* </p>
* @param float $length <p>
* The length of the wave.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function waveImage($amplitude, $length) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adds vignette filter to the image
* @link https://php.net/manual/en/imagick.vignetteimage.php
* @param float $blackPoint <p>
* The black point.
* </p>
* @param float $whitePoint <p>
* The white point
* </p>
* @param int $x <p>
* X offset of the ellipse
* </p>
* @param int $y <p>
* Y offset of the ellipse
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function vignetteImage($blackPoint, $whitePoint, $x, $y) {}
/**
* (PECL imagick 2.0.0)<br/>
* Discards all but one of any pixel color
* @link https://php.net/manual/en/imagick.uniqueimagecolors.php
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function uniqueImageColors() {}
/**
* (PECL imagick 2.0.0)<br/>
* Return if the image has a matte channel
* @link https://php.net/manual/en/imagick.getimagematte.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @throws ImagickException on error.
*/
#[Deprecated]
#[Pure]
public function getImageMatte() {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image matte channel
* @link https://php.net/manual/en/imagick.setimagematte.php
* @param bool $matte <p>
* True activates the matte channel and false disables it.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function setImageMatte($matte) {}
/**
* Adaptively resize image with data dependent triangulation
*
* If legacy is true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0.<br>
* If false, the calculations should produce the same results as ImageMagick CLI does.<br>
* <br>
* <b>Note:</b> The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched.
* In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
* @link https://php.net/manual/en/imagick.adaptiveresizeimage.php
* @param int $columns The number of columns in the scaled image.
* @param int $rows The number of rows in the scaled image.
* @param bool $bestfit [optional] Whether to fit the image inside a bounding box.<br>
* The behavior of the parameter bestfit changed in Imagick 3.0.0. Before this version given dimensions 400x400 an image of dimensions 200x150 would be left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as this is the "best fit" for the given dimensions. If bestfit parameter is used both width and height must be given.
* @param bool $legacy [optional] Added since 3.4.0. Default value FALSE
* @return bool TRUE on success
* @throws ImagickException Throws ImagickException on error
* @since 2.0.0
*/
public function adaptiveResizeImage($columns, $rows, $bestfit = false, $legacy = false) {}
/**
* (PECL imagick 2.0.0)<br/>
* Simulates a pencil sketch
* @link https://php.net/manual/en/imagick.sketchimage.php
* @param float $radius <p>
* The radius of the Gaussian, in pixels, not counting the center pixel
* </p>
* @param float $sigma <p>
* The standard deviation of the Gaussian, in pixels.
* </p>
* @param float $angle <p>
* Apply the effect along this angle.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function sketchImage($radius, $sigma, $angle) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a 3D effect
* @link https://php.net/manual/en/imagick.shadeimage.php
* @param bool $gray <p>
* A value other than zero shades the intensity of each pixel.
* </p>
* @param float $azimuth <p>
* Defines the light source direction.
* </p>
* @param float $elevation <p>
* Defines the light source direction.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function shadeImage($gray, $azimuth, $elevation) {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the size offset
* @link https://php.net/manual/en/imagick.getsizeoffset.php
* @return int the size offset associated with the Imagick object.
* @throws ImagickException on error.
*/
#[Pure]
public function getSizeOffset() {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the size and offset of the Imagick object
* @link https://php.net/manual/en/imagick.setsizeoffset.php
* @param int $columns <p>
* The width in pixels.
* </p>
* @param int $rows <p>
* The height in pixels.
* </p>
* @param int $offset <p>
* The image offset.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function setSizeOffset($columns, $rows, $offset) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adds adaptive blur filter to image
* @link https://php.net/manual/en/imagick.adaptiveblurimage.php
* @param float $radius <p>
* The radius of the Gaussian, in pixels, not counting the center pixel.
* Provide a value of 0 and the radius will be chosen automagically.
* </p>
* @param float $sigma <p>
* The standard deviation of the Gaussian, in pixels.
* </p>
* @param int $channel [optional] <p>
* Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function adaptiveBlurImage($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
/**
* (PECL imagick 2.0.0)<br/>
* Enhances the contrast of a color image
* @link https://php.net/manual/en/imagick.contraststretchimage.php
* @param float $black_point <p>
* The black point.
* </p>
* @param float $white_point <p>
* The white point.
* </p>
* @param int $channel [optional] <p>
* Provide any channel constant that is valid for your channel mode. To
* apply to more than one channel, combine channeltype constants using
* bitwise operators. <b>Imagick::CHANNEL_ALL</b>. Refer to this
* list of channel constants.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function contrastStretchImage($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adaptively sharpen the image
* @link https://php.net/manual/en/imagick.adaptivesharpenimage.php
* @param float $radius <p>
* The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select.
* </p>
* @param float $sigma <p>
* The standard deviation of the Gaussian, in pixels.
* </p>
* @param int $channel [optional] <p>
* Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. Defaults to <b>Imagick::CHANNEL_DEFAULT</b>. Refer to this list of channel constants
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function adaptiveSharpenImage($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a high-contrast, two-color image
* @link https://php.net/manual/en/imagick.randomthresholdimage.php
* @param float $low <p>
* The low point
* </p>
* @param float $high <p>
* The high point
* </p>
* @param int $channel [optional] <p>
* Provide any channel constant that is valid for your channel mode. To
* apply to more than one channel, combine channeltype constants using
* bitwise operators. Refer to this
* list of channel constants.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function randomThresholdImage($low, $high, $channel = Imagick::CHANNEL_ALL) {}
/**
* @param $xRounding
* @param $yRounding
* @param $strokeWidth [optional]
* @param $displace [optional]
* @param $sizeCorrection [optional]
* @throws ImagickException on error.
*/
public function roundCornersImage($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {}
/**
* (PECL imagick 2.0.0)<br/>
* Rounds image corners
* Alias to {@see Imagick::roundCornersImage}
* @link https://php.net/manual/en/imagick.roundcorners.php
* @param float $x_rounding <p>
* x rounding
* </p>
* @param float $y_rounding <p>
* y rounding
* </p>
* @param float $stroke_width [optional] <p>
* stroke width
* </p>
* @param float $displace [optional] <p>
* image displace
* </p>
* @param float $size_correction [optional] <p>
* size correction
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
#[Deprecated(replacement: "%class%->roundCornersImage(%parametersList%)")]
public function roundCorners($x_rounding, $y_rounding, $stroke_width = 10.0, $displace = 5.0, $size_correction = -6.0) {}
/**
* (PECL imagick 2.0.0)<br/>
* Set the iterator position
* @link https://php.net/manual/en/imagick.setiteratorindex.php
* @param int $index <p>
* The position to set the iterator to
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function setIteratorIndex($index) {}
/**
* (PECL imagick 2.0.0)<br/>
* Gets the index of the current active image
* @link https://php.net/manual/en/imagick.getiteratorindex.php
* @return int an integer containing the index of the image in the stack.
*/
#[Pure]
public function getIteratorIndex() {}
/**
* (PECL imagick 2.0.0)<br/>
* Convenience method for setting crop size and the image geometry
* @link https://php.net/manual/en/imagick.transformimage.php
* @param string $crop <p>
* A crop geometry string. This geometry defines a subregion of the image to crop.
* </p>
* @param string $geometry <p>
* An image geometry string. This geometry defines the final size of the image.
* </p>
* @return Imagick <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function transformImage($crop, $geometry) {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image opacity level
* @link https://php.net/manual/en/imagick.setimageopacity.php
* @param float $opacity <p>
* The level of transparency: 1.0 is fully opaque and 0.0 is fully
* transparent.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function setImageOpacity($opacity) {}
/**
* (PECL imagick 2.2.2)<br/>
* Performs an ordered dither
* @link https://php.net/manual/en/imagick.orderedposterizeimage.php
* @param string $threshold_map <p>
* A string containing the name of the threshold dither map to use
* </p>
* @param int $channel [optional] <p>
* Provide any channel constant that is valid for your channel mode. To
* apply to more than one channel, combine channeltype constants using
* bitwise operators. Refer to this
* list of channel constants.
* </p>
* @return bool <b>TRUE</b> on success.
* @throws ImagickException on error.
*/
public function orderedPosterizeImage($threshold_map, $channel = Imagick::CHANNEL_ALL) {}
/**
* (PECL imagick 2.0.0)<br/>
* Simulates a Polaroid picture
* @link https://php.net/manual/en/imagick.polaroidimage.php