forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagick.php
6106 lines (5591 loc) · 180 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.2.0RC1
class ImagickException extends Exception {
}
class ImagickDrawException extends Exception {
}
class ImagickPixelIteratorException extends Exception {
}
class ImagickPixelException extends Exception {
}
/**
* @method Imagick clone() (PECL imagick 2.0.0)<br/>Makes an exact copy of the Imagick object
* @link http://php.net/manual/en/class.imagick.php
*/
class Imagick implements Iterator, Traversable, Countable {
const COLOR_BLACK = 11;
const COLOR_BLUE = 12;
const COLOR_CYAN = 13;
const COLOR_GREEN = 14;
const COLOR_RED = 15;
const COLOR_YELLOW = 16;
const COLOR_MAGENTA = 17;
const COLOR_OPACITY = 18;
const COLOR_ALPHA = 19;
const COLOR_FUZZ = 20;
const IMAGICK_EXTNUM = 30200;
const IMAGICK_EXTVER = "3.2.0RC1";
const QUANTUM_RANGE = 65535;
const USE_ZEND_MM = 0;
const COMPOSITE_DEFAULT = 40;
const COMPOSITE_UNDEFINED = 0;
const COMPOSITE_NO = 1;
const COMPOSITE_ADD = 2;
const COMPOSITE_ATOP = 3;
const COMPOSITE_BLEND = 4;
const COMPOSITE_BUMPMAP = 5;
const COMPOSITE_CLEAR = 7;
const COMPOSITE_COLORBURN = 8;
const COMPOSITE_COLORDODGE = 9;
const COMPOSITE_COLORIZE = 10;
const COMPOSITE_COPYBLACK = 11;
const COMPOSITE_COPYBLUE = 12;
const COMPOSITE_COPY = 13;
const COMPOSITE_COPYCYAN = 14;
const COMPOSITE_COPYGREEN = 15;
const COMPOSITE_COPYMAGENTA = 16;
const COMPOSITE_COPYOPACITY = 17;
const COMPOSITE_COPYRED = 18;
const COMPOSITE_COPYYELLOW = 19;
const COMPOSITE_DARKEN = 20;
const COMPOSITE_DSTATOP = 21;
const COMPOSITE_DST = 22;
const COMPOSITE_DSTIN = 23;
const COMPOSITE_DSTOUT = 24;
const COMPOSITE_DSTOVER = 25;
const COMPOSITE_DIFFERENCE = 26;
const COMPOSITE_DISPLACE = 27;
const COMPOSITE_DISSOLVE = 28;
const COMPOSITE_EXCLUSION = 29;
const COMPOSITE_HARDLIGHT = 30;
const COMPOSITE_HUE = 31;
const COMPOSITE_IN = 32;
const COMPOSITE_LIGHTEN = 33;
const COMPOSITE_LUMINIZE = 35;
const COMPOSITE_MINUS = 36;
const COMPOSITE_MODULATE = 37;
const COMPOSITE_MULTIPLY = 38;
const COMPOSITE_OUT = 39;
const COMPOSITE_OVER = 40;
const COMPOSITE_OVERLAY = 41;
const COMPOSITE_PLUS = 42;
const COMPOSITE_REPLACE = 43;
const COMPOSITE_SATURATE = 44;
const COMPOSITE_SCREEN = 45;
const COMPOSITE_SOFTLIGHT = 46;
const COMPOSITE_SRCATOP = 47;
const COMPOSITE_SRC = 48;
const COMPOSITE_SRCIN = 49;
const COMPOSITE_SRCOUT = 50;
const COMPOSITE_SRCOVER = 51;
const COMPOSITE_SUBTRACT = 52;
const COMPOSITE_THRESHOLD = 53;
const COMPOSITE_XOR = 54;
const COMPOSITE_CHANGEMASK = 6;
const COMPOSITE_LINEARLIGHT = 34;
const COMPOSITE_DIVIDE = 55;
const COMPOSITE_DISTORT = 56;
const COMPOSITE_BLUR = 57;
const COMPOSITE_PEGTOPLIGHT = 58;
const COMPOSITE_VIVIDLIGHT = 59;
const COMPOSITE_PINLIGHT = 60;
const COMPOSITE_LINEARDODGE = 61;
const COMPOSITE_LINEARBURN = 62;
const COMPOSITE_MATHEMATICS = 63;
const COMPOSITE_MODULUSADD = 2;
const COMPOSITE_MODULUSSUBTRACT = 52;
const COMPOSITE_MINUSDST = 36;
const COMPOSITE_DIVIDEDST = 55;
const COMPOSITE_DIVIDESRC = 64;
const COMPOSITE_MINUSSRC = 65;
const COMPOSITE_DARKENINTENSITY = 66;
const COMPOSITE_LIGHTENINTENSITY = 67;
const MONTAGEMODE_FRAME = 1;
const MONTAGEMODE_UNFRAME = 2;
const MONTAGEMODE_CONCATENATE = 3;
const STYLE_NORMAL = 1;
const STYLE_ITALIC = 2;
const STYLE_OBLIQUE = 3;
const STYLE_ANY = 4;
const FILTER_UNDEFINED = 0;
const FILTER_POINT = 1;
const FILTER_BOX = 2;
const FILTER_TRIANGLE = 3;
const FILTER_HERMITE = 4;
const FILTER_HANNING = 5;
const FILTER_HAMMING = 6;
const FILTER_BLACKMAN = 7;
const FILTER_GAUSSIAN = 8;
const FILTER_QUADRATIC = 9;
const FILTER_CUBIC = 10;
const FILTER_CATROM = 11;
const FILTER_MITCHELL = 12;
const FILTER_LANCZOS = 22;
const FILTER_BESSEL = 13;
const FILTER_SINC = 14;
const FILTER_KAISER = 16;
const FILTER_WELSH = 17;
const FILTER_PARZEN = 18;
const FILTER_LAGRANGE = 21;
const FILTER_SENTINEL = 30;
const FILTER_BOHMAN = 19;
const FILTER_BARTLETT = 20;
const FILTER_JINC = 13;
const FILTER_SINCFAST = 15;
const FILTER_ROBIDOUX = 26;
const FILTER_LANCZOSSHARP = 23;
const FILTER_LANCZOS2 = 24;
const FILTER_LANCZOS2SHARP = 25;
const FILTER_ROBIDOUXSHARP = 27;
const FILTER_COSINE = 28;
const IMGTYPE_UNDEFINED = 0;
const IMGTYPE_BILEVEL = 1;
const IMGTYPE_GRAYSCALE = 2;
const IMGTYPE_GRAYSCALEMATTE = 3;
const IMGTYPE_PALETTE = 4;
const IMGTYPE_PALETTEMATTE = 5;
const IMGTYPE_TRUECOLOR = 6;
const IMGTYPE_TRUECOLORMATTE = 7;
const IMGTYPE_COLORSEPARATION = 8;
const IMGTYPE_COLORSEPARATIONMATTE = 9;
const IMGTYPE_OPTIMIZE = 10;
const IMGTYPE_PALETTEBILEVELMATTE = 11;
const RESOLUTION_UNDEFINED = 0;
const RESOLUTION_PIXELSPERINCH = 1;
const RESOLUTION_PIXELSPERCENTIMETER = 2;
const COMPRESSION_UNDEFINED = 0;
const COMPRESSION_NO = 1;
const COMPRESSION_BZIP = 2;
const COMPRESSION_FAX = 6;
const COMPRESSION_GROUP4 = 7;
const COMPRESSION_JPEG = 8;
const COMPRESSION_JPEG2000 = 9;
const COMPRESSION_LOSSLESSJPEG = 10;
const COMPRESSION_LZW = 11;
const COMPRESSION_RLE = 12;
const COMPRESSION_ZIP = 13;
const COMPRESSION_DXT1 = 3;
const COMPRESSION_DXT3 = 4;
const COMPRESSION_DXT5 = 5;
const COMPRESSION_ZIPS = 14;
const COMPRESSION_PIZ = 15;
const COMPRESSION_PXR24 = 16;
const COMPRESSION_B44 = 17;
const COMPRESSION_B44A = 18;
const COMPRESSION_LZMA = 19;
const COMPRESSION_JBIG1 = 20;
const COMPRESSION_JBIG2 = 21;
const PAINT_POINT = 1;
const PAINT_REPLACE = 2;
const PAINT_FLOODFILL = 3;
const PAINT_FILLTOBORDER = 4;
const PAINT_RESET = 5;
const GRAVITY_NORTHWEST = 1;
const GRAVITY_NORTH = 2;
const GRAVITY_NORTHEAST = 3;
const GRAVITY_WEST = 4;
const GRAVITY_CENTER = 5;
const GRAVITY_EAST = 6;
const GRAVITY_SOUTHWEST = 7;
const GRAVITY_SOUTH = 8;
const GRAVITY_SOUTHEAST = 9;
const STRETCH_NORMAL = 1;
const STRETCH_ULTRACONDENSED = 2;
const STRETCH_CONDENSED = 4;
const STRETCH_SEMICONDENSED = 5;
const STRETCH_SEMIEXPANDED = 6;
const STRETCH_EXPANDED = 7;
const STRETCH_EXTRAEXPANDED = 8;
const STRETCH_ULTRAEXPANDED = 9;
const STRETCH_ANY = 10;
const ALIGN_UNDEFINED = 0;
const ALIGN_LEFT = 1;
const ALIGN_CENTER = 2;
const ALIGN_RIGHT = 3;
const DECORATION_NO = 1;
const DECORATION_UNDERLINE = 2;
const DECORATION_OVERLINE = 3;
const DECORATION_LINETROUGH = 4;
const NOISE_UNIFORM = 1;
const NOISE_GAUSSIAN = 2;
const NOISE_MULTIPLICATIVEGAUSSIAN = 3;
const NOISE_IMPULSE = 4;
const NOISE_LAPLACIAN = 5;
const NOISE_POISSON = 6;
const NOISE_RANDOM = 7;
const CHANNEL_UNDEFINED = 0;
const CHANNEL_RED = 1;
const CHANNEL_GRAY = 128;
const CHANNEL_CYAN = 1;
const CHANNEL_GREEN = 2;
const CHANNEL_MAGENTA = 2;
const CHANNEL_BLUE = 4;
const CHANNEL_YELLOW = 4;
const CHANNEL_ALPHA = 8;
const CHANNEL_OPACITY = 8;
const CHANNEL_MATTE = 8;
const CHANNEL_BLACK = 32;
const CHANNEL_INDEX = 32;
const CHANNEL_ALL = 134217727;
const CHANNEL_DEFAULT = 134217719;
const CHANNEL_TRUEALPHA = 64;
const CHANNEL_RGBS = 128;
const CHANNEL_SYNC = 256;
const CHANNEL_COMPOSITES = 47;
const METRIC_UNDEFINED = 0;
const METRIC_MEANABSOLUTEERROR = 2;
const METRIC_MEANSQUAREERROR = 4;
const METRIC_PEAKABSOLUTEERROR = 5;
const METRIC_PEAKSIGNALTONOISERATIO = 6;
const METRIC_ROOTMEANSQUAREDERROR = 7;
const PIXEL_CHAR = 1;
const PIXEL_DOUBLE = 2;
const PIXEL_FLOAT = 3;
const PIXEL_INTEGER = 4;
const PIXEL_LONG = 5;
const PIXEL_QUANTUM = 6;
const PIXEL_SHORT = 7;
const EVALUATE_UNDEFINED = 0;
const EVALUATE_ADD = 1;
const EVALUATE_AND = 2;
const EVALUATE_DIVIDE = 3;
const EVALUATE_LEFTSHIFT = 4;
const EVALUATE_MAX = 5;
const EVALUATE_MIN = 6;
const EVALUATE_MULTIPLY = 7;
const EVALUATE_OR = 8;
const EVALUATE_RIGHTSHIFT = 9;
const EVALUATE_SET = 10;
const EVALUATE_SUBTRACT = 11;
const EVALUATE_XOR = 12;
const EVALUATE_POW = 13;
const EVALUATE_LOG = 14;
const EVALUATE_THRESHOLD = 15;
const EVALUATE_THRESHOLDBLACK = 16;
const EVALUATE_THRESHOLDWHITE = 17;
const EVALUATE_GAUSSIANNOISE = 18;
const EVALUATE_IMPULSENOISE = 19;
const EVALUATE_LAPLACIANNOISE = 20;
const EVALUATE_MULTIPLICATIVENOISE = 21;
const EVALUATE_POISSONNOISE = 22;
const EVALUATE_UNIFORMNOISE = 23;
const EVALUATE_COSINE = 24;
const EVALUATE_SINE = 25;
const EVALUATE_ADDMODULUS = 26;
const EVALUATE_MEAN = 27;
const EVALUATE_ABS = 28;
const EVALUATE_EXPONENTIAL = 29;
const EVALUATE_MEDIAN = 30;
const EVALUATE_SUM = 31;
const COLORSPACE_UNDEFINED = 0;
const COLORSPACE_RGB = 1;
const COLORSPACE_GRAY = 2;
const COLORSPACE_TRANSPARENT = 3;
const COLORSPACE_OHTA = 4;
const COLORSPACE_LAB = 5;
const COLORSPACE_XYZ = 6;
const COLORSPACE_YCBCR = 7;
const COLORSPACE_YCC = 8;
const COLORSPACE_YIQ = 9;
const COLORSPACE_YPBPR = 10;
const COLORSPACE_YUV = 11;
const COLORSPACE_CMYK = 12;
const COLORSPACE_SRGB = 13;
const COLORSPACE_HSB = 14;
const COLORSPACE_HSL = 15;
const COLORSPACE_HWB = 16;
const COLORSPACE_REC601LUMA = 17;
const COLORSPACE_REC709LUMA = 19;
const COLORSPACE_LOG = 21;
const COLORSPACE_CMY = 22;
const VIRTUALPIXELMETHOD_UNDEFINED = 0;
const VIRTUALPIXELMETHOD_BACKGROUND = 1;
const VIRTUALPIXELMETHOD_CONSTANT = 2;
const VIRTUALPIXELMETHOD_EDGE = 4;
const VIRTUALPIXELMETHOD_MIRROR = 5;
const VIRTUALPIXELMETHOD_TILE = 7;
const VIRTUALPIXELMETHOD_TRANSPARENT = 8;
const VIRTUALPIXELMETHOD_MASK = 9;
const VIRTUALPIXELMETHOD_BLACK = 10;
const VIRTUALPIXELMETHOD_GRAY = 11;
const VIRTUALPIXELMETHOD_WHITE = 12;
const VIRTUALPIXELMETHOD_HORIZONTALTILE = 13;
const VIRTUALPIXELMETHOD_VERTICALTILE = 14;
const VIRTUALPIXELMETHOD_HORIZONTALTILEEDGE = 15;
const VIRTUALPIXELMETHOD_VERTICALTILEEDGE = 16;
const VIRTUALPIXELMETHOD_CHECKERTILE = 17;
const PREVIEW_UNDEFINED = 0;
const PREVIEW_ROTATE = 1;
const PREVIEW_SHEAR = 2;
const PREVIEW_ROLL = 3;
const PREVIEW_HUE = 4;
const PREVIEW_SATURATION = 5;
const PREVIEW_BRIGHTNESS = 6;
const PREVIEW_GAMMA = 7;
const PREVIEW_SPIFF = 8;
const PREVIEW_DULL = 9;
const PREVIEW_GRAYSCALE = 10;
const PREVIEW_QUANTIZE = 11;
const PREVIEW_DESPECKLE = 12;
const PREVIEW_REDUCENOISE = 13;
const PREVIEW_ADDNOISE = 14;
const PREVIEW_SHARPEN = 15;
const PREVIEW_BLUR = 16;
const PREVIEW_THRESHOLD = 17;
const PREVIEW_EDGEDETECT = 18;
const PREVIEW_SPREAD = 19;
const PREVIEW_SOLARIZE = 20;
const PREVIEW_SHADE = 21;
const PREVIEW_RAISE = 22;
const PREVIEW_SEGMENT = 23;
const PREVIEW_SWIRL = 24;
const PREVIEW_IMPLODE = 25;
const PREVIEW_WAVE = 26;
const PREVIEW_OILPAINT = 27;
const PREVIEW_CHARCOALDRAWING = 28;
const PREVIEW_JPEG = 29;
const RENDERINGINTENT_UNDEFINED = 0;
const RENDERINGINTENT_SATURATION = 1;
const RENDERINGINTENT_PERCEPTUAL = 2;
const RENDERINGINTENT_ABSOLUTE = 3;
const RENDERINGINTENT_RELATIVE = 4;
const INTERLACE_UNDEFINED = 0;
const INTERLACE_NO = 1;
const INTERLACE_LINE = 2;
const INTERLACE_PLANE = 3;
const INTERLACE_PARTITION = 4;
const INTERLACE_GIF = 5;
const INTERLACE_JPEG = 6;
const INTERLACE_PNG = 7;
const FILLRULE_UNDEFINED = 0;
const FILLRULE_EVENODD = 1;
const FILLRULE_NONZERO = 2;
const PATHUNITS_UNDEFINED = 0;
const PATHUNITS_USERSPACE = 1;
const PATHUNITS_USERSPACEONUSE = 2;
const PATHUNITS_OBJECTBOUNDINGBOX = 3;
const LINECAP_UNDEFINED = 0;
const LINECAP_BUTT = 1;
const LINECAP_ROUND = 2;
const LINECAP_SQUARE = 3;
const LINEJOIN_UNDEFINED = 0;
const LINEJOIN_MITER = 1;
const LINEJOIN_ROUND = 2;
const LINEJOIN_BEVEL = 3;
const RESOURCETYPE_UNDEFINED = 0;
const RESOURCETYPE_AREA = 1;
const RESOURCETYPE_DISK = 2;
const RESOURCETYPE_FILE = 3;
const RESOURCETYPE_MAP = 4;
const RESOURCETYPE_MEMORY = 5;
const DISPOSE_UNRECOGNIZED = 0;
const DISPOSE_UNDEFINED = 0;
const DISPOSE_NONE = 1;
const DISPOSE_BACKGROUND = 2;
const DISPOSE_PREVIOUS = 3;
const INTERPOLATE_UNDEFINED = 0;
const INTERPOLATE_AVERAGE = 1;
const INTERPOLATE_BICUBIC = 2;
const INTERPOLATE_BILINEAR = 3;
const INTERPOLATE_FILTER = 4;
const INTERPOLATE_INTEGER = 5;
const INTERPOLATE_MESH = 6;
const INTERPOLATE_NEARESTNEIGHBOR = 7;
const INTERPOLATE_SPLINE = 8;
const LAYERMETHOD_UNDEFINED = 0;
const LAYERMETHOD_COALESCE = 1;
const LAYERMETHOD_COMPAREANY = 2;
const LAYERMETHOD_COMPARECLEAR = 3;
const LAYERMETHOD_COMPAREOVERLAY = 4;
const LAYERMETHOD_DISPOSE = 5;
const LAYERMETHOD_OPTIMIZE = 6;
const LAYERMETHOD_OPTIMIZEPLUS = 8;
const LAYERMETHOD_OPTIMIZETRANS = 9;
const LAYERMETHOD_COMPOSITE = 12;
const LAYERMETHOD_OPTIMIZEIMAGE = 7;
const LAYERMETHOD_REMOVEDUPS = 10;
const LAYERMETHOD_REMOVEZERO = 11;
const LAYERMETHOD_MERGE = 13;
const LAYERMETHOD_FLATTEN = 14;
const LAYERMETHOD_MOSAIC = 15;
const LAYERMETHOD_TRIMBOUNDS = 16;
const ORIENTATION_UNDEFINED = 0;
const ORIENTATION_TOPLEFT = 1;
const ORIENTATION_TOPRIGHT = 2;
const ORIENTATION_BOTTOMRIGHT = 3;
const ORIENTATION_BOTTOMLEFT = 4;
const ORIENTATION_LEFTTOP = 5;
const ORIENTATION_RIGHTTOP = 6;
const ORIENTATION_RIGHTBOTTOM = 7;
const ORIENTATION_LEFTBOTTOM = 8;
const DISTORTION_UNDEFINED = 0;
const DISTORTION_AFFINE = 1;
const DISTORTION_AFFINEPROJECTION = 2;
const DISTORTION_ARC = 9;
const DISTORTION_BILINEAR = 6;
const DISTORTION_PERSPECTIVE = 4;
const DISTORTION_PERSPECTIVEPROJECTION = 5;
const DISTORTION_SCALEROTATETRANSLATE = 3;
const DISTORTION_POLYNOMIAL = 8;
const DISTORTION_POLAR = 10;
const DISTORTION_DEPOLAR = 11;
const DISTORTION_BARREL = 14;
const DISTORTION_BARRELINVERSE = 15;
const DISTORTION_SHEPARDS = 16;
const DISTORTION_SENTINEL = 18;
const DISTORTION_BILINEARFORWARD = 6;
const DISTORTION_BILINEARREVERSE = 7;
const DISTORTION_RESIZE = 17;
const DISTORTION_CYLINDER2PLANE = 12;
const DISTORTION_PLANE2CYLINDER = 13;
const ALPHACHANNEL_ACTIVATE = 1;
const ALPHACHANNEL_DEACTIVATE = 4;
const ALPHACHANNEL_RESET = 7;
const ALPHACHANNEL_SET = 8;
const ALPHACHANNEL_UNDEFINED = 0;
const ALPHACHANNEL_COPY = 3;
const ALPHACHANNEL_EXTRACT = 5;
const ALPHACHANNEL_OPAQUE = 6;
const ALPHACHANNEL_SHAPE = 9;
const ALPHACHANNEL_TRANSPARENT = 10;
const SPARSECOLORMETHOD_UNDEFINED = 0;
const SPARSECOLORMETHOD_BARYCENTRIC = 1;
const SPARSECOLORMETHOD_BILINEAR = 7;
const SPARSECOLORMETHOD_POLYNOMIAL = 8;
const SPARSECOLORMETHOD_SPEPARDS = 16;
const SPARSECOLORMETHOD_VORONOI = 18;
const DITHERMETHOD_UNDEFINED = 0;
const DITHERMETHOD_NO = 1;
const DITHERMETHOD_RIEMERSMA = 2;
const DITHERMETHOD_FLOYDSTEINBERG = 3;
const FUNCTION_UNDEFINED = 0;
const FUNCTION_POLYNOMIAL = 1;
const FUNCTION_SINUSOID = 2;
/**
* (PECL imagick 2.0.0)<br/>
* Removes repeated portions of images to optimize
* @link http://php.net/manual/en/imagick.optimizeimagelayers.php
* @return bool <b>TRUE</b> on success.
*/
public function optimizeImageLayers () {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the maximum bounding region between images
* @link http://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.
*/
public function compareImageLayers ($method) {}
/**
* (PECL imagick 2.0.0)<br/>
* Quickly fetch attributes
* @link http://php.net/manual/en/imagick.pingimageblob.php
* @param string $image <p>
* A string containing the image.
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function pingImageBlob ($image) {}
/**
* (PECL imagick 2.0.0)<br/>
* Get basic image attributes in a lightweight manner
* @link http://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.
*/
public function pingImageFile ($filehandle, $fileName = null) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a vertical mirror image
* @link http://php.net/manual/en/imagick.transposeimage.php
* @return bool <b>TRUE</b> on success.
*/
public function transposeImage () {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a horizontal mirror image
* @link http://php.net/manual/en/imagick.transverseimage.php
* @return bool <b>TRUE</b> on success.
*/
public function transverseImage () {}
/**
* (PECL imagick 2.0.0)<br/>
* Remove edges from the image
* @link http://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.
*/
public function trimImage ($fuzz) {}
/**
* (PECL imagick 2.0.0)<br/>
* Applies wave filter to the image
* @link http://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.
*/
public function waveImage ($amplitude, $length) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adds vignette filter to the image
* @link http://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.
*/
public function vignetteImage ($blackPoint, $whitePoint, $x, $y) {}
/**
* (PECL imagick 2.0.0)<br/>
* Discards all but one of any pixel color
* @link http://php.net/manual/en/imagick.uniqueimagecolors.php
* @return bool <b>TRUE</b> on success.
*/
public function uniqueImageColors () {}
/**
* (PECL imagick 2.0.0)<br/>
* Return if the image has a matte channel
* @link http://php.net/manual/en/imagick.getimagematte.php
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function getImageMatte () {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image matte channel
* @link http://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.
*/
public function setImageMatte ($matte) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adaptively resize image with data dependent triangulation
* @link http://php.net/manual/en/imagick.adaptiveresizeimage.php
* @param int $columns <p>
* The number of columns in the scaled image.
* </p>
* @param int $rows <p>
* The number of rows in the scaled image.
* </p>
* @param bool $bestfit [optional] <p>
* Whether to fit the image inside a bounding box.
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function adaptiveResizeImage ($columns, $rows, $bestfit = false) {}
/**
* (PECL imagick 2.0.0)<br/>
* Simulates a pencil sketch
* @link http://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.
*/
public function sketchImage ($radius, $sigma, $angle) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a 3D effect
* @link http://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.
*/
public function shadeImage ($gray, $azimuth, $elevation) {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the size offset
* @link http://php.net/manual/en/imagick.getsizeoffset.php
* @return int the size offset associated with the Imagick object.
*/
public function getSizeOffset () {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the size and offset of the Imagick object
* @link http://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.
*/
public function setSizeOffset ($columns, $rows, $offset) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adds adaptive blur filter to image
* @link http://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.
*/
public function adaptiveBlurImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
/**
* (PECL imagick 2.0.0)<br/>
* Enhances the contrast of a color image
* @link http://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.
*/
public function contrastStretchImage ($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {}
/**
* (PECL imagick 2.0.0)<br/>
* Adaptively sharpen the image
* @link http://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.
*/
public function adaptiveSharpenImage ($radius, $sigma, $channel = Imagick::CHANNEL_DEFAULT) {}
/**
* (PECL imagick 2.0.0)<br/>
* Creates a high-contrast, two-color image
* @link http://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.
*/
public function randomThresholdImage ($low, $high, $channel = Imagick::CHANNEL_ALL) {}
/**
* @param $xRounding
* @param $yRounding
* @param $strokeWidth [optional]
* @param $displace [optional]
* @param $sizeCorrection [optional]
*/
public function roundCornersImage ($xRounding, $yRounding, $strokeWidth, $displace, $sizeCorrection) {}
/**
* (PECL imagick 2.0.0)<br/>
* Rounds image corners
* @link http://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.
*/
public function roundCorners ($x_rounding, $y_rounding, $stroke_width = 10, $displace = 5, $size_correction = -6) {}
/**
* (PECL imagick 2.0.0)<br/>
* Set the iterator position
* @link http://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.
*/
public function setIteratorIndex ($index) {}
/**
* (PECL imagick 2.0.0)<br/>
* Gets the index of the current active image
* @link http://php.net/manual/en/imagick.getiteratorindex.php
* @return int an integer containing the index of the image in the stack.
*/
public function getIteratorIndex () {}
/**
* (PECL imagick 2.0.0)<br/>
* Convenience method for setting crop size and the image geometry
* @link http://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.
*/
public function transformImage ($crop, $geometry) {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image opacity level
* @link http://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.
*/
public function setImageOpacity ($opacity) {}
/**
* (PECL imagick 2.2.2)<br/>
* Performs an ordered dither
* @link http://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.
*/
public function orderedPosterizeImage ($threshold_map, $channel = Imagick::CHANNEL_ALL) {}
/**
* (PECL imagick 2.0.0)<br/>
* Simulates a Polaroid picture
* @link http://php.net/manual/en/imagick.polaroidimage.php
* @param ImagickDraw $properties <p>
* The polaroid properties
* </p>
* @param float $angle <p>
* The polaroid angle
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function polaroidImage (ImagickDraw $properties, $angle) {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the named image property
* @link http://php.net/manual/en/imagick.getimageproperty.php
* @param string $name <p>
* name of the property (for example Exif:DateTime)
* </p>
* @return string a string containing the image property, false if a
* property with the given name does not exist.
*/
public function getImageProperty ($name) {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets an image property
* @link http://php.net/manual/en/imagick.setimageproperty.php
* @param string $name
* @param string $value
* @return bool <b>TRUE</b> on success.
*/
public function setImageProperty ($name, $value) {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image interpolate pixel method
* @link http://php.net/manual/en/imagick.setimageinterpolatemethod.php
* @param int $method <p>
* The method is one of the <b>Imagick::INTERPOLATE_*</b> constants
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function setImageInterpolateMethod ($method) {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the interpolation method
* @link http://php.net/manual/en/imagick.getimageinterpolatemethod.php
* @return int the interpolate method on success.
*/
public function getImageInterpolateMethod () {}
/**
* (PECL imagick 2.0.0)<br/>
* Stretches with saturation the image intensity
* @link http://php.net/manual/en/imagick.linearstretchimage.php
* @param float $blackPoint <p>
* The image black point
* </p>
* @param float $whitePoint <p>
* The image white point
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function linearStretchImage ($blackPoint, $whitePoint) {}
/**
* (PECL imagick 2.0.0)<br/>
* Returns the image length in bytes
* @link http://php.net/manual/en/imagick.getimagelength.php
* @return int an int containing the current image size.
*/
public function getImageLength () {}
/**
* (No version information available, might only be in SVN)<br/>
* Set image size
* @link http://php.net/manual/en/imagick.extentimage.php
* @param int $width <p>
* The new width
* </p>
* @param int $height <p>
* The new height
* </p>
* @param int $x <p>
* X position for the new size
* </p>
* @param int $y <p>
* Y position for the new size
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function extentImage ($width, $height, $x, $y) {}
/**
* (PECL imagick 2.0.0)<br/>
* Gets the image orientation
* @link http://php.net/manual/en/imagick.getimageorientation.php
* @return int an int on success.
*/
public function getImageOrientation () {}
/**
* (PECL imagick 2.0.0)<br/>
* Sets the image orientation
* @link http://php.net/manual/en/imagick.setimageorientation.php
* @param int $orientation <p>
* One of the orientation constants
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function setImageOrientation ($orientation) {}
/**
* (PECL imagick 2.1.0)<br/>
* Changes the color value of any pixel that matches target
* @link http://php.net/manual/en/imagick.paintfloodfillimage.php
* @param mixed $fill <p>
* ImagickPixel object or a string containing the fill color
* </p>
* @param float $fuzz <p>
* The amount of fuzz. For example, set fuzz to 10 and the color red at
* intensities of 100 and 102 respectively are now interpreted as the
* same color for the purposes of the floodfill.
* </p>
* @param mixed $bordercolor <p>
* ImagickPixel object or a string containing the border color
* </p>
* @param int $x <p>
* X start position of the floodfill
* </p>
* @param int $y <p>
* Y start position of the floodfill
* </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.
*/
public function paintFloodfillImage ($fill, $fuzz, $bordercolor, $x, $y, $channel = Imagick::CHANNEL_ALL) {}
/**
* (PECL imagick 2.0.0)<br/>
* Replaces colors in the image
* @link http://php.net/manual/en/imagick.clutimage.php