forked from HvyIndustries/crane-php-stubs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
imagick.php
7264 lines (6645 loc) · 222 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.0RC6
final class ImagickException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
final class ImagickDrawException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
final class ImagickPixelIteratorException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
final class ImagickPixelException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
/**
* @link http://php.net/manual/en/class.imagickkernelexception.php
*/
final class ImagickKernelException extends Exception implements Throwable {
protected $message;
protected $code;
protected $file;
protected $line;
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Clone the exception
* @link http://php.net/manual/en/exception.clone.php
* @return void No value is returned.
*/
final private function __clone() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Construct the exception
* @link http://php.net/manual/en/exception.construct.php
* @param string $message [optional] <p>
* The Exception message to throw.
* </p>
* @param int $code [optional] <p>
* The Exception code.
* </p>
* @param Throwable $previous [optional] <p>
* The previous exception used for the exception chaining.
* </p>
*/
public function __construct(string $message = "", int $code = 0, Throwable $previous = null) {}
public function __wakeup() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception message
* @link http://php.net/manual/en/exception.getmessage.php
* @return string the Exception message as a string.
*/
final public function getMessage(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the Exception code
* @link http://php.net/manual/en/exception.getcode.php
* @return mixed the exception code as integer in
* <b>Exception</b> but possibly as other type in
* <b>Exception</b> descendants (for example as
* string in <b>PDOException</b>).
*/
final public function getCode() {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the file in which the exception occurred
* @link http://php.net/manual/en/exception.getfile.php
* @return string the filename in which the exception was created.
*/
final public function getFile(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the line in which the exception occurred
* @link http://php.net/manual/en/exception.getline.php
* @return int the line number where the exception was created.
*/
final public function getLine(): int {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace
* @link http://php.net/manual/en/exception.gettrace.php
* @return array the Exception stack trace as an array.
*/
final public function getTrace(): array {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Returns previous Exception
* @link http://php.net/manual/en/exception.getprevious.php
* @return Exception the previous <b>Exception</b> if available
* or <b>NULL</b> otherwise.
*/
final public function getPrevious(): Exception {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* Gets the stack trace as a string
* @link http://php.net/manual/en/exception.gettraceasstring.php
* @return string the Exception stack trace as a string.
*/
final public function getTraceAsString(): string {}
/**
* (PHP 5 >= 5.1.0, PHP 7)<br/>
* String representation of the exception
* @link http://php.net/manual/en/exception.tostring.php
* @return string the string representation of the exception.
*/
public function __toString(): string {}
}
/**
* @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 = 30400;
const IMAGICK_EXTVER = "3.4.0RC6";
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 = 31;
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 FILTER_SPLINE = 29;
const FILTER_LANCZOSRADIUS = 30;
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 GRAVITY_FORGET = 0;
const GRAVITY_STATIC = 10;
const STRETCH_NORMAL = 1;
const STRETCH_ULTRACONDENSED = 2;
const STRETCH_EXTRACONDENSED = 3;
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 DECORATION_LINETHROUGH = 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 = 1;
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_RGBA = 15;
const CHANNEL_TRUEALPHA = 64;
const CHANNEL_RGBS = 128;
const CHANNEL_GRAY_CHANNELS = 128;
const CHANNEL_SYNC = 256;
const CHANNEL_COMPOSITES = 47;
const METRIC_UNDEFINED = 0;
const METRIC_ABSOLUTEERRORMETRIC = 1;
const METRIC_MEANABSOLUTEERROR = 2;
const METRIC_MEANERRORPERPIXELMETRIC = 3;
const METRIC_MEANSQUAREERROR = 4;
const METRIC_PEAKABSOLUTEERROR = 5;
const METRIC_PEAKSIGNALTONOISERATIO = 6;
const METRIC_ROOTMEANSQUAREDERROR = 7;
const METRIC_NORMALIZEDCROSSCORRELATIONERRORMETRIC = 8;
const METRIC_FUZZERROR = 9;
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 COLORSPACE_LUV = 23;
const COLORSPACE_HCL = 24;
const COLORSPACE_LCH = 25;
const COLORSPACE_LMS = 26;
const COLORSPACE_LCHAB = 27;
const COLORSPACE_LCHUV = 28;
const COLORSPACE_SCRGB = 29;
const COLORSPACE_HSI = 30;
const COLORSPACE_HSV = 31;
const COLORSPACE_HCLP = 32;
const COLORSPACE_YDBDR = 33;
const COLORSPACE_REC601YCBCR = 18;
const COLORSPACE_REC709YCBCR = 20;
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 RESOURCETYPE_TIME = 7;
const RESOURCETYPE_THROTTLE = 8;
const RESOURCETYPE_THREAD = 6;
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_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_SHEPARDS = 16;
const DISTORTION_SENTINEL = 18;
const DISTORTION_BARRELINVERSE = 15;
const DISTORTION_BILINEARFORWARD = 6;
const DISTORTION_BILINEARREVERSE = 7;
const DISTORTION_RESIZE = 17;
const DISTORTION_CYLINDER2PLANE = 12;
const DISTORTION_PLANE2CYLINDER = 13;
const LAYERMETHOD_MERGE = 13;
const LAYERMETHOD_FLATTEN = 14;
const LAYERMETHOD_MOSAIC = 15;
const ALPHACHANNEL_ACTIVATE = 1;
const ALPHACHANNEL_RESET = 7;
const ALPHACHANNEL_SET = 8;
const ALPHACHANNEL_UNDEFINED = 0;
const ALPHACHANNEL_COPY = 3;
const ALPHACHANNEL_DEACTIVATE = 4;
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 SPARSECOLORMETHOD_INVERSE = 19;
const DITHERMETHOD_UNDEFINED = 0;
const DITHERMETHOD_NO = 1;
const DITHERMETHOD_RIEMERSMA = 2;