@imagemagick/magick-wasm 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +40 -39
- package/README.md +1 -1
- package/dist/index.d.ts +944 -733
- package/dist/index.js +7897 -6978
- package/dist/index.umd.cjs +25 -6
- package/dist/magick.wasm +0 -0
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
export type ByteArray = Int8Array | Uint8Array | Uint8ClampedArray;
|
|
4
4
|
export interface IConfigurationFile {
|
|
@@ -25,7 +25,7 @@ export declare enum MagickFormat {
|
|
|
25
25
|
A = "A",
|
|
26
26
|
Aai = "AAI",
|
|
27
27
|
Ai = "AI",
|
|
28
|
-
|
|
28
|
+
APng = "APNG",
|
|
29
29
|
Art = "ART",
|
|
30
30
|
Arw = "ARW",
|
|
31
31
|
Ashlar = "ASHLAR",
|
|
@@ -84,14 +84,15 @@ export declare enum MagickFormat {
|
|
|
84
84
|
Farbfeld = "FARBFELD",
|
|
85
85
|
Fax = "FAX",
|
|
86
86
|
Ff = "FF",
|
|
87
|
+
Fff = "FFF",
|
|
87
88
|
File = "FILE",
|
|
88
89
|
Fits = "FITS",
|
|
89
90
|
Fl32 = "FL32",
|
|
90
91
|
Flv = "FLV",
|
|
91
92
|
Fractal = "FRACTAL",
|
|
92
93
|
Ftp = "FTP",
|
|
93
|
-
Ftxt = "FTXT",
|
|
94
94
|
Fts = "FTS",
|
|
95
|
+
Ftxt = "FTXT",
|
|
95
96
|
G = "G",
|
|
96
97
|
G3 = "G3",
|
|
97
98
|
G4 = "G4",
|
|
@@ -146,12 +147,14 @@ export declare enum MagickFormat {
|
|
|
146
147
|
Mask = "MASK",
|
|
147
148
|
Mat = "MAT",
|
|
148
149
|
Matte = "MATTE",
|
|
150
|
+
Mdc = "MDC",
|
|
149
151
|
Mef = "MEF",
|
|
150
152
|
Miff = "MIFF",
|
|
151
153
|
Mkv = "MKV",
|
|
152
154
|
Mng = "MNG",
|
|
153
155
|
Mono = "MONO",
|
|
154
156
|
Mov = "MOV",
|
|
157
|
+
Mos = "MOS",
|
|
155
158
|
Mp4 = "MP4",
|
|
156
159
|
Mpc = "MPC",
|
|
157
160
|
Mpeg = "MPEG",
|
|
@@ -229,6 +232,7 @@ export declare enum MagickFormat {
|
|
|
229
232
|
Rle = "RLE",
|
|
230
233
|
Rmf = "RMF",
|
|
231
234
|
Rw2 = "RW2",
|
|
235
|
+
Rwl = "RWL",
|
|
232
236
|
Scr = "SCR",
|
|
233
237
|
Screenshot = "SCREENSHOT",
|
|
234
238
|
Sct = "SCT",
|
|
@@ -240,7 +244,9 @@ export declare enum MagickFormat {
|
|
|
240
244
|
SparseColor = "SPARSE-COLOR",
|
|
241
245
|
Sr2 = "SR2",
|
|
242
246
|
Srf = "SRF",
|
|
247
|
+
Srw = "SRW",
|
|
243
248
|
Stegano = "STEGANO",
|
|
249
|
+
Sti = "STI",
|
|
244
250
|
StrImg = "STRIMG",
|
|
245
251
|
Sun = "SUN",
|
|
246
252
|
Svg = "SVG",
|
|
@@ -248,6 +254,7 @@ export declare enum MagickFormat {
|
|
|
248
254
|
Text = "TEXT",
|
|
249
255
|
Tga = "TGA",
|
|
250
256
|
Thumbnail = "THUMBNAIL",
|
|
257
|
+
Tif = "TIF",
|
|
251
258
|
Tiff = "TIFF",
|
|
252
259
|
Tiff64 = "TIFF64",
|
|
253
260
|
Tile = "TILE",
|
|
@@ -266,9 +273,9 @@ export declare enum MagickFormat {
|
|
|
266
273
|
Viff = "VIFF",
|
|
267
274
|
Vips = "VIPS",
|
|
268
275
|
Vst = "VST",
|
|
276
|
+
WebM = "WEBM",
|
|
277
|
+
WebP = "WEBP",
|
|
269
278
|
Wbmp = "WBMP",
|
|
270
|
-
Webp = "WEBP",
|
|
271
|
-
Webm = "WEBM",
|
|
272
279
|
Wmv = "WMV",
|
|
273
280
|
Wpg = "WPG",
|
|
274
281
|
X3f = "X3F",
|
|
@@ -280,8 +287,8 @@ export declare enum MagickFormat {
|
|
|
280
287
|
Xv = "XV",
|
|
281
288
|
Y = "Y",
|
|
282
289
|
Yaml = "YAML",
|
|
283
|
-
Ycbcr = "
|
|
284
|
-
Ycbcra = "
|
|
290
|
+
Ycbcr = "YCBCR",
|
|
291
|
+
Ycbcra = "YCBCRA",
|
|
285
292
|
Yuv = "YUV"
|
|
286
293
|
}
|
|
287
294
|
export interface IDefine {
|
|
@@ -515,8 +522,8 @@ export declare class DrawableTextAlignment implements IDrawable {
|
|
|
515
522
|
export declare class DrawableTextAntialias implements IDrawable {
|
|
516
523
|
private readonly _isEnabled;
|
|
517
524
|
private constructor();
|
|
518
|
-
static get
|
|
519
|
-
static get
|
|
525
|
+
static get disabled(): DrawableTextAntialias;
|
|
526
|
+
static get enabled(): DrawableTextAntialias;
|
|
520
527
|
draw(wand: IDrawingWand): void;
|
|
521
528
|
}
|
|
522
529
|
export declare class DrawableTextDecoration implements IDrawable {
|
|
@@ -567,13 +574,8 @@ declare enum AlphaOption$1 {
|
|
|
567
574
|
Remove = 12,
|
|
568
575
|
Set = 13,
|
|
569
576
|
Shape = 14,
|
|
570
|
-
Transparent = 15
|
|
571
|
-
|
|
572
|
-
export declare enum AutoThresholdMethod {
|
|
573
|
-
Undefined = 0,
|
|
574
|
-
Kapur = 1,
|
|
575
|
-
OTSU = 2,
|
|
576
|
-
Triangle = 3
|
|
577
|
+
Transparent = 15,
|
|
578
|
+
OffIfOpaque = 16
|
|
577
579
|
}
|
|
578
580
|
export declare enum Channels {
|
|
579
581
|
Undefined = 0,
|
|
@@ -648,11 +650,6 @@ export declare enum Channels {
|
|
|
648
650
|
Meta52 = 1073741824,
|
|
649
651
|
All = 134217727
|
|
650
652
|
}
|
|
651
|
-
export declare enum ClassType {
|
|
652
|
-
Undefined = 0,
|
|
653
|
-
Direct = 1,
|
|
654
|
-
Pseudo = 2
|
|
655
|
-
}
|
|
656
653
|
export declare enum ColorSpace {
|
|
657
654
|
Undefined = 0,
|
|
658
655
|
CMY = 1,
|
|
@@ -689,6 +686,63 @@ export declare enum ColorSpace {
|
|
|
689
686
|
YUV = 32,
|
|
690
687
|
LinearGray = 33
|
|
691
688
|
}
|
|
689
|
+
export declare enum ComplexOperator {
|
|
690
|
+
Undefined = 0,
|
|
691
|
+
Add = 1,
|
|
692
|
+
Conjugate = 2,
|
|
693
|
+
Divide = 3,
|
|
694
|
+
MagnitudePhase = 4,
|
|
695
|
+
Multiply = 5,
|
|
696
|
+
RealImaginary = 6,
|
|
697
|
+
Subtract = 7
|
|
698
|
+
}
|
|
699
|
+
export declare class ComplexSettings {
|
|
700
|
+
constructor(complexOperator: ComplexOperator);
|
|
701
|
+
readonly complexOperator: ComplexOperator;
|
|
702
|
+
signalToNoiseRatio?: number;
|
|
703
|
+
}
|
|
704
|
+
export declare enum EvaluateOperator {
|
|
705
|
+
Undefined = 0,
|
|
706
|
+
Abs = 1,
|
|
707
|
+
Add = 2,
|
|
708
|
+
AddModulus = 3,
|
|
709
|
+
And = 4,
|
|
710
|
+
Cosine = 5,
|
|
711
|
+
Divide = 6,
|
|
712
|
+
Exponential = 7,
|
|
713
|
+
GaussianNoise = 8,
|
|
714
|
+
ImpulseNoise = 9,
|
|
715
|
+
LaplacianNoise = 10,
|
|
716
|
+
LeftShift = 11,
|
|
717
|
+
Log = 12,
|
|
718
|
+
Max = 13,
|
|
719
|
+
Mean = 14,
|
|
720
|
+
Median = 15,
|
|
721
|
+
Min = 16,
|
|
722
|
+
MultiplicativeNoise = 17,
|
|
723
|
+
Multiply = 18,
|
|
724
|
+
Or = 19,
|
|
725
|
+
PoissonNoise = 20,
|
|
726
|
+
Pow = 21,
|
|
727
|
+
RightShift = 22,
|
|
728
|
+
RootMeanSquare = 23,
|
|
729
|
+
Set = 24,
|
|
730
|
+
Sine = 25,
|
|
731
|
+
Subtract = 26,
|
|
732
|
+
Sum = 27,
|
|
733
|
+
ThresholdBlack = 28,
|
|
734
|
+
Threshold = 29,
|
|
735
|
+
ThresholdWhite = 30,
|
|
736
|
+
UniformNoise = 31,
|
|
737
|
+
Xor = 32,
|
|
738
|
+
InverseLog = 33
|
|
739
|
+
}
|
|
740
|
+
export declare class MagickErrorInfo {
|
|
741
|
+
private constructor();
|
|
742
|
+
readonly meanErrorPerPixel: number;
|
|
743
|
+
readonly normalizedMaximumError: number;
|
|
744
|
+
readonly normalizedMeanError: number;
|
|
745
|
+
}
|
|
692
746
|
export declare enum ColorType {
|
|
693
747
|
Undefined = 0,
|
|
694
748
|
Bilevel = 1,
|
|
@@ -703,90 +757,6 @@ export declare enum ColorType {
|
|
|
703
757
|
Optimize = 10,
|
|
704
758
|
PaletteBilevelAlpha = 11
|
|
705
759
|
}
|
|
706
|
-
export declare enum CompositeOperator {
|
|
707
|
-
Undefined = 0,
|
|
708
|
-
Alpha = 1,
|
|
709
|
-
Atop = 2,
|
|
710
|
-
Blend = 3,
|
|
711
|
-
Blur = 4,
|
|
712
|
-
Bumpmap = 5,
|
|
713
|
-
ChangeMask = 6,
|
|
714
|
-
Clear = 7,
|
|
715
|
-
ColorBurn = 8,
|
|
716
|
-
ColorDodge = 9,
|
|
717
|
-
Colorize = 10,
|
|
718
|
-
CopyBlack = 11,
|
|
719
|
-
CopyBlue = 12,
|
|
720
|
-
Copy = 13,
|
|
721
|
-
CopyCyan = 14,
|
|
722
|
-
CopyGreen = 15,
|
|
723
|
-
CopyMagenta = 16,
|
|
724
|
-
CopyAlpha = 17,
|
|
725
|
-
CopyRed = 18,
|
|
726
|
-
CopyYellow = 19,
|
|
727
|
-
Darken = 20,
|
|
728
|
-
DarkenIntensity = 21,
|
|
729
|
-
Difference = 22,
|
|
730
|
-
Displace = 23,
|
|
731
|
-
Dissolve = 24,
|
|
732
|
-
Distort = 25,
|
|
733
|
-
DivideDst = 26,
|
|
734
|
-
DivideSrc = 27,
|
|
735
|
-
DstAtop = 28,
|
|
736
|
-
Dst = 29,
|
|
737
|
-
DstIn = 30,
|
|
738
|
-
DstOut = 31,
|
|
739
|
-
DstOver = 32,
|
|
740
|
-
Exclusion = 33,
|
|
741
|
-
HardLight = 34,
|
|
742
|
-
HardMix = 35,
|
|
743
|
-
Hue = 36,
|
|
744
|
-
In = 37,
|
|
745
|
-
Intensity = 38,
|
|
746
|
-
Lighten = 39,
|
|
747
|
-
LightenIntensity = 40,
|
|
748
|
-
LinearBurn = 41,
|
|
749
|
-
LinearDodge = 42,
|
|
750
|
-
LinearLight = 43,
|
|
751
|
-
Luminize = 44,
|
|
752
|
-
Mathematics = 45,
|
|
753
|
-
MinusDst = 46,
|
|
754
|
-
MinusSrc = 47,
|
|
755
|
-
Modulate = 48,
|
|
756
|
-
ModulusAdd = 49,
|
|
757
|
-
ModulusSubtract = 50,
|
|
758
|
-
Multiply = 51,
|
|
759
|
-
No = 52,
|
|
760
|
-
Out = 53,
|
|
761
|
-
Over = 54,
|
|
762
|
-
Overlay = 55,
|
|
763
|
-
PegtopLight = 56,
|
|
764
|
-
PinLight = 57,
|
|
765
|
-
Plus = 58,
|
|
766
|
-
Replace = 59,
|
|
767
|
-
Saturate = 60,
|
|
768
|
-
Screen = 61,
|
|
769
|
-
SoftLight = 62,
|
|
770
|
-
SrcAtop = 63,
|
|
771
|
-
Src = 64,
|
|
772
|
-
SrcIn = 65,
|
|
773
|
-
SrcOut = 66,
|
|
774
|
-
SrcOver = 67,
|
|
775
|
-
Threshold = 68,
|
|
776
|
-
VividLight = 69,
|
|
777
|
-
Xor = 70,
|
|
778
|
-
Stereo = 71,
|
|
779
|
-
Freeze = 72,
|
|
780
|
-
Interpolate = 73,
|
|
781
|
-
Negate = 74,
|
|
782
|
-
Reflect = 75,
|
|
783
|
-
SoftBurn = 76,
|
|
784
|
-
SoftDodge = 77,
|
|
785
|
-
Stamp = 78,
|
|
786
|
-
RMSE = 79,
|
|
787
|
-
SaliencyBlend = 80,
|
|
788
|
-
SeamlessBlend = 81
|
|
789
|
-
}
|
|
790
760
|
export declare enum CompressionMethod {
|
|
791
761
|
Undefined = 0,
|
|
792
762
|
B44A = 1,
|
|
@@ -817,469 +787,53 @@ export declare enum CompressionMethod {
|
|
|
817
787
|
BC7 = 26,
|
|
818
788
|
BC5 = 27
|
|
819
789
|
}
|
|
820
|
-
export declare enum DensityUnit {
|
|
821
|
-
Undefined = 0,
|
|
822
|
-
PixelsPerInch = 1,
|
|
823
|
-
PixelsPerCentimeter = 2
|
|
824
|
-
}
|
|
825
|
-
export declare enum DistortMethod {
|
|
826
|
-
Undefined = 0,
|
|
827
|
-
Affine = 1,
|
|
828
|
-
AffineProjection = 2,
|
|
829
|
-
ScaleRotateTranslate = 3,
|
|
830
|
-
Perspective = 4,
|
|
831
|
-
PerspectiveProjection = 5,
|
|
832
|
-
BilinearForward = 6,
|
|
833
|
-
BilinearReverse = 7,
|
|
834
|
-
Polynomial = 8,
|
|
835
|
-
Arc = 9,
|
|
836
|
-
Polar = 10,
|
|
837
|
-
DePolar = 11,
|
|
838
|
-
Cylinder2Plane = 12,
|
|
839
|
-
Plane2Cylinder = 13,
|
|
840
|
-
Barrel = 14,
|
|
841
|
-
BarrelInverse = 15,
|
|
842
|
-
Shepards = 16,
|
|
843
|
-
Resize = 17,
|
|
844
|
-
Sentinel = 18,
|
|
845
|
-
RigidAffine = 19
|
|
846
|
-
}
|
|
847
|
-
export declare enum DitherMethod {
|
|
848
|
-
Undefined = 0,
|
|
849
|
-
No = 1,
|
|
850
|
-
Riemersma = 2,
|
|
851
|
-
FloydSteinberg = 3
|
|
852
|
-
}
|
|
853
790
|
export declare enum Endian {
|
|
854
791
|
Undefined = 0,
|
|
855
792
|
LSB = 1,
|
|
856
793
|
MSB = 2
|
|
857
794
|
}
|
|
858
|
-
export declare enum
|
|
795
|
+
export declare enum Interlace {
|
|
859
796
|
Undefined = 0,
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
PeakSignalToNoiseRatio = 8,
|
|
868
|
-
PerceptualHash = 9,
|
|
869
|
-
RootMeanSquared = 10,
|
|
870
|
-
StructuralSimilarity = 11,
|
|
871
|
-
StructuralDissimilarity = 12
|
|
797
|
+
NoInterlace = 1,
|
|
798
|
+
Line = 2,
|
|
799
|
+
Plane = 3,
|
|
800
|
+
Partition = 4,
|
|
801
|
+
Gif = 5,
|
|
802
|
+
Jpeg = 6,
|
|
803
|
+
Png = 7
|
|
872
804
|
}
|
|
873
|
-
export declare
|
|
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
|
-
Sine = 25,
|
|
900
|
-
Subtract = 26,
|
|
901
|
-
Sum = 27,
|
|
902
|
-
ThresholdBlack = 28,
|
|
903
|
-
Threshold = 29,
|
|
904
|
-
ThresholdWhite = 30,
|
|
905
|
-
UniformNoise = 31,
|
|
906
|
-
Xor = 32,
|
|
907
|
-
InverseLog = 33
|
|
805
|
+
export declare class MagickSettings {
|
|
806
|
+
antiAlias?: boolean;
|
|
807
|
+
backgroundColor?: IMagickColor;
|
|
808
|
+
colorSpace?: ColorSpace;
|
|
809
|
+
colorType?: ColorType;
|
|
810
|
+
compression?: CompressionMethod;
|
|
811
|
+
debug?: boolean;
|
|
812
|
+
depth?: number;
|
|
813
|
+
endian?: Endian;
|
|
814
|
+
fillColor?: IMagickColor;
|
|
815
|
+
font?: string;
|
|
816
|
+
fontPointsize?: number;
|
|
817
|
+
format?: MagickFormat;
|
|
818
|
+
interlace?: Interlace;
|
|
819
|
+
strokeColor?: IMagickColor;
|
|
820
|
+
strokeWidth?: number;
|
|
821
|
+
textInterlineSpacing?: number;
|
|
822
|
+
textKerning?: number;
|
|
823
|
+
getDefine(name: string): string;
|
|
824
|
+
getDefine(format: MagickFormat, name: string): string;
|
|
825
|
+
setDefine(name: string, value: string): void;
|
|
826
|
+
setDefine(format: MagickFormat, name: string, value: string): void;
|
|
827
|
+
setDefine(format: MagickFormat, name: string, value: number): void;
|
|
828
|
+
setDefine(format: MagickFormat, name: string, value: boolean): void;
|
|
829
|
+
setDefines(defines: IDefines): void;
|
|
830
|
+
private parseDefine;
|
|
908
831
|
}
|
|
909
|
-
export declare
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
Hermite = 4,
|
|
915
|
-
Hann = 5,
|
|
916
|
-
Hamming = 6,
|
|
917
|
-
Blackman = 7,
|
|
918
|
-
Gaussian = 8,
|
|
919
|
-
Quadratic = 9,
|
|
920
|
-
Cubic = 10,
|
|
921
|
-
Catrom = 11,
|
|
922
|
-
Mitchell = 12,
|
|
923
|
-
Jinc = 13,
|
|
924
|
-
Sinc = 14,
|
|
925
|
-
SincFast = 15,
|
|
926
|
-
Kaiser = 16,
|
|
927
|
-
Welch = 17,
|
|
928
|
-
Parzen = 18,
|
|
929
|
-
Bohman = 19,
|
|
930
|
-
Bartlett = 20,
|
|
931
|
-
Lagrange = 21,
|
|
932
|
-
Lanczos = 22,
|
|
933
|
-
LanczosSharp = 23,
|
|
934
|
-
Lanczos2 = 24,
|
|
935
|
-
Lanczos2Sharp = 25,
|
|
936
|
-
Robidoux = 26,
|
|
937
|
-
RobidouxSharp = 27,
|
|
938
|
-
Cosine = 28,
|
|
939
|
-
Spline = 29,
|
|
940
|
-
LanczosRadius = 30,
|
|
941
|
-
CubicSpline = 31
|
|
942
|
-
}
|
|
943
|
-
export declare enum GifDisposeMethod {
|
|
944
|
-
Undefined = 0,
|
|
945
|
-
None = 1,
|
|
946
|
-
Background = 2,
|
|
947
|
-
Previous = 3
|
|
948
|
-
}
|
|
949
|
-
export declare enum Interlace {
|
|
950
|
-
Undefined = 0,
|
|
951
|
-
NoInterlace = 1,
|
|
952
|
-
Line = 2,
|
|
953
|
-
Plane = 3,
|
|
954
|
-
Partition = 4,
|
|
955
|
-
Gif = 5,
|
|
956
|
-
Jpeg = 6,
|
|
957
|
-
Png = 7
|
|
958
|
-
}
|
|
959
|
-
export declare enum Kernel {
|
|
960
|
-
Undefined = "Undefined",
|
|
961
|
-
Unity = "Unity",
|
|
962
|
-
Gaussian = "Gaussian",
|
|
963
|
-
DoG = "DoG",
|
|
964
|
-
LoG = "LoG",
|
|
965
|
-
Blur = "Blur",
|
|
966
|
-
Comet = "Comet",
|
|
967
|
-
Binomial = "Binomial",
|
|
968
|
-
Laplacian = "Laplacian",
|
|
969
|
-
Sobel = "Sobel",
|
|
970
|
-
FreiChen = "FreiChen",
|
|
971
|
-
Roberts = "Roberts",
|
|
972
|
-
Prewitt = "Prewitt",
|
|
973
|
-
Compass = "Compass",
|
|
974
|
-
Kirsch = "Kirsch",
|
|
975
|
-
Diamond = "Diamond",
|
|
976
|
-
Square = "Square",
|
|
977
|
-
Rectangle = "Rectangle",
|
|
978
|
-
Octagon = "Octagon",
|
|
979
|
-
Disk = "Disk",
|
|
980
|
-
Plus = "Plus",
|
|
981
|
-
Cross = "Cross",
|
|
982
|
-
Ring = "Ring",
|
|
983
|
-
Peaks = "Peaks",
|
|
984
|
-
Edges = "Edges",
|
|
985
|
-
Corners = "Corners",
|
|
986
|
-
Diagonals = "Diagonals",
|
|
987
|
-
LineEnds = "LineEnds",
|
|
988
|
-
LineJunctions = "LineJunctions",
|
|
989
|
-
Ridges = "Ridges",
|
|
990
|
-
ConvexHull = "ConvexHull",
|
|
991
|
-
ThinSE = "ThinSE",
|
|
992
|
-
Skeleton = "Skeleton",
|
|
993
|
-
Chebyshev = "Chebyshev",
|
|
994
|
-
Manhattan = "Manhattan",
|
|
995
|
-
Octagonal = "Octagonal",
|
|
996
|
-
Euclidean = "Euclidean",
|
|
997
|
-
UserDefined = "UserDefined"
|
|
998
|
-
}
|
|
999
|
-
export declare enum LogEventTypes {
|
|
1000
|
-
None = 0,
|
|
1001
|
-
Accelerate = 1,
|
|
1002
|
-
Annotate = 2,
|
|
1003
|
-
Blob = 4,
|
|
1004
|
-
Cache = 8,
|
|
1005
|
-
Coder = 16,
|
|
1006
|
-
Configure = 32,
|
|
1007
|
-
Deprecate = 64,
|
|
1008
|
-
Draw = 128,
|
|
1009
|
-
Exception = 256,
|
|
1010
|
-
Image = 512,
|
|
1011
|
-
Locale = 1024,
|
|
1012
|
-
Module = 2048,
|
|
1013
|
-
Pixel = 4096,
|
|
1014
|
-
Policy = 8192,
|
|
1015
|
-
Resource = 16384,
|
|
1016
|
-
Trace = 32768,
|
|
1017
|
-
Transform = 65536,
|
|
1018
|
-
User = 131072,
|
|
1019
|
-
Wand = 262144,
|
|
1020
|
-
Detailed = 2147450879,
|
|
1021
|
-
All = 2147483647
|
|
1022
|
-
}
|
|
1023
|
-
export declare enum MagickErrorSeverity {
|
|
1024
|
-
Warning = 300,
|
|
1025
|
-
ResourceLimitWarning = 300,
|
|
1026
|
-
TypeWarning = 305,
|
|
1027
|
-
OptionWarning = 310,
|
|
1028
|
-
DelegateWarning = 315,
|
|
1029
|
-
MissingDelegateWarning = 320,
|
|
1030
|
-
CorruptImageWarning = 325,
|
|
1031
|
-
FileOpenWarning = 330,
|
|
1032
|
-
BlobWarning = 335,
|
|
1033
|
-
StreamWarning = 340,
|
|
1034
|
-
CacheWarning = 345,
|
|
1035
|
-
CoderWarning = 350,
|
|
1036
|
-
FilterWarning = 352,
|
|
1037
|
-
ModuleWarning = 355,
|
|
1038
|
-
DrawWarning = 360,
|
|
1039
|
-
ImageWarning = 365,
|
|
1040
|
-
WandWarning = 370,
|
|
1041
|
-
RandomWarning = 375,
|
|
1042
|
-
XServerWarning = 380,
|
|
1043
|
-
MonitorWarning = 385,
|
|
1044
|
-
RegistryWarning = 390,
|
|
1045
|
-
ConfigureWarning = 395,
|
|
1046
|
-
PolicyWarning = 399,
|
|
1047
|
-
Error = 400,
|
|
1048
|
-
ResourceLimitError = 400,
|
|
1049
|
-
TypeError = 405,
|
|
1050
|
-
OptionError = 410,
|
|
1051
|
-
DelegateError = 415,
|
|
1052
|
-
MissingDelegateError = 420,
|
|
1053
|
-
CorruptImageError = 425,
|
|
1054
|
-
FileOpenError = 430,
|
|
1055
|
-
BlobError = 435,
|
|
1056
|
-
StreamError = 440,
|
|
1057
|
-
CacheError = 445,
|
|
1058
|
-
CoderError = 450,
|
|
1059
|
-
FilterError = 452,
|
|
1060
|
-
ModuleError = 455,
|
|
1061
|
-
DrawError = 460,
|
|
1062
|
-
ImageError = 465,
|
|
1063
|
-
WandError = 470,
|
|
1064
|
-
RandomError = 475,
|
|
1065
|
-
XServerError = 480,
|
|
1066
|
-
MonitorError = 485,
|
|
1067
|
-
RegistryError = 490,
|
|
1068
|
-
ConfigureError = 495,
|
|
1069
|
-
PolicyError = 499
|
|
1070
|
-
}
|
|
1071
|
-
export declare enum MorphologyMethod {
|
|
1072
|
-
Undefined = 0,
|
|
1073
|
-
Convolve = 1,
|
|
1074
|
-
Correlate = 2,
|
|
1075
|
-
Erode = 3,
|
|
1076
|
-
Dilate = 4,
|
|
1077
|
-
ErodeIntensity = 5,
|
|
1078
|
-
DilateIntensity = 6,
|
|
1079
|
-
IterativeDistance = 7,
|
|
1080
|
-
Open = 8,
|
|
1081
|
-
Close = 9,
|
|
1082
|
-
OpenIntensity = 10,
|
|
1083
|
-
CloseIntensity = 11,
|
|
1084
|
-
Smooth = 12,
|
|
1085
|
-
EdgeIn = 13,
|
|
1086
|
-
EdgeOut = 14,
|
|
1087
|
-
Edge = 15,
|
|
1088
|
-
TopHat = 16,
|
|
1089
|
-
BottomHat = 17,
|
|
1090
|
-
HitAndMiss = 18,
|
|
1091
|
-
Thinning = 19,
|
|
1092
|
-
Thicken = 20,
|
|
1093
|
-
Distance = 21,
|
|
1094
|
-
Voronoi = 22
|
|
1095
|
-
}
|
|
1096
|
-
declare enum OrientationType$1 {
|
|
1097
|
-
Undefined = 0,
|
|
1098
|
-
TopLeft = 1,
|
|
1099
|
-
TopRight = 2,
|
|
1100
|
-
BottomRight = 3,
|
|
1101
|
-
BottomLeft = 4,
|
|
1102
|
-
LeftTop = 5,
|
|
1103
|
-
RightTop = 6,
|
|
1104
|
-
RightBottom = 7,
|
|
1105
|
-
LeftBottom = 8
|
|
1106
|
-
}
|
|
1107
|
-
export declare enum PixelChannel {
|
|
1108
|
-
Red = 0,
|
|
1109
|
-
Cyan = 0,
|
|
1110
|
-
Gray = 0,
|
|
1111
|
-
Green = 1,
|
|
1112
|
-
Magenta = 1,
|
|
1113
|
-
Blue = 2,
|
|
1114
|
-
Yellow = 2,
|
|
1115
|
-
Black = 3,
|
|
1116
|
-
Alpha = 4,
|
|
1117
|
-
Index = 5,
|
|
1118
|
-
Meta0 = 10,
|
|
1119
|
-
Meta1 = 11,
|
|
1120
|
-
Meta2 = 12,
|
|
1121
|
-
Meta3 = 13,
|
|
1122
|
-
Meta4 = 14,
|
|
1123
|
-
Meta5 = 15,
|
|
1124
|
-
Meta6 = 16,
|
|
1125
|
-
Meta7 = 17,
|
|
1126
|
-
Meta8 = 18,
|
|
1127
|
-
Meta9 = 19,
|
|
1128
|
-
Meta10 = 20,
|
|
1129
|
-
Meta11 = 21,
|
|
1130
|
-
Meta12 = 22,
|
|
1131
|
-
Meta13 = 23,
|
|
1132
|
-
Meta14 = 24,
|
|
1133
|
-
Meta15 = 25,
|
|
1134
|
-
Meta16 = 26,
|
|
1135
|
-
Meta17 = 27,
|
|
1136
|
-
Meta18 = 28,
|
|
1137
|
-
Meta19 = 29,
|
|
1138
|
-
Meta20 = 30,
|
|
1139
|
-
Meta21 = 31,
|
|
1140
|
-
Meta22 = 32,
|
|
1141
|
-
Meta23 = 33,
|
|
1142
|
-
Meta24 = 34,
|
|
1143
|
-
Meta25 = 35,
|
|
1144
|
-
Meta26 = 36,
|
|
1145
|
-
Meta27 = 37,
|
|
1146
|
-
Meta28 = 38,
|
|
1147
|
-
Meta29 = 39,
|
|
1148
|
-
Meta30 = 40,
|
|
1149
|
-
Meta31 = 41,
|
|
1150
|
-
Meta32 = 42,
|
|
1151
|
-
Meta33 = 43,
|
|
1152
|
-
Meta34 = 44,
|
|
1153
|
-
Meta35 = 45,
|
|
1154
|
-
Meta36 = 46,
|
|
1155
|
-
Meta37 = 47,
|
|
1156
|
-
Meta38 = 48,
|
|
1157
|
-
Meta39 = 49,
|
|
1158
|
-
Meta40 = 50,
|
|
1159
|
-
Meta41 = 51,
|
|
1160
|
-
Meta42 = 52,
|
|
1161
|
-
Meta43 = 53,
|
|
1162
|
-
Meta44 = 54,
|
|
1163
|
-
Meta45 = 55,
|
|
1164
|
-
Meta46 = 56,
|
|
1165
|
-
Meta47 = 57,
|
|
1166
|
-
Meta48 = 58,
|
|
1167
|
-
Meta49 = 59,
|
|
1168
|
-
Meta50 = 60,
|
|
1169
|
-
Meta51 = 61,
|
|
1170
|
-
Meta52 = 62,
|
|
1171
|
-
Composite = 64
|
|
1172
|
-
}
|
|
1173
|
-
export declare enum PixelIntensityMethod {
|
|
1174
|
-
Undefined = 0,
|
|
1175
|
-
Average = 1,
|
|
1176
|
-
Brightness = 2,
|
|
1177
|
-
Lightness = 3,
|
|
1178
|
-
MS = 4,
|
|
1179
|
-
Rec601Luma = 5,
|
|
1180
|
-
Rec601Luminance = 6,
|
|
1181
|
-
Rec709Luma = 7,
|
|
1182
|
-
Rec709Luminance = 8,
|
|
1183
|
-
RMS = 9
|
|
1184
|
-
}
|
|
1185
|
-
export declare enum PixelInterpolateMethod {
|
|
1186
|
-
Undefined = 0,
|
|
1187
|
-
Average = 1,
|
|
1188
|
-
Average9 = 2,
|
|
1189
|
-
Average16 = 3,
|
|
1190
|
-
Background = 4,
|
|
1191
|
-
Bilinear = 5,
|
|
1192
|
-
Blend = 6,
|
|
1193
|
-
Catrom = 7,
|
|
1194
|
-
Integer = 8,
|
|
1195
|
-
Mesh = 9,
|
|
1196
|
-
Nearest = 10,
|
|
1197
|
-
Spline = 11
|
|
1198
|
-
}
|
|
1199
|
-
export declare enum RenderingIntent {
|
|
1200
|
-
Undefined = 0,
|
|
1201
|
-
Saturation = 1,
|
|
1202
|
-
Perceptual = 2,
|
|
1203
|
-
Absolute = 3,
|
|
1204
|
-
Relative = 4
|
|
1205
|
-
}
|
|
1206
|
-
export declare enum VirtualPixelMethod {
|
|
1207
|
-
Undefined = 0,
|
|
1208
|
-
Background = 1,
|
|
1209
|
-
Dither = 2,
|
|
1210
|
-
Edge = 3,
|
|
1211
|
-
Mirror = 4,
|
|
1212
|
-
Random = 5,
|
|
1213
|
-
Tile = 6,
|
|
1214
|
-
Transparent = 7,
|
|
1215
|
-
Mask = 8,
|
|
1216
|
-
Black = 9,
|
|
1217
|
-
Gray = 10,
|
|
1218
|
-
White = 11,
|
|
1219
|
-
HorizontalTile = 12,
|
|
1220
|
-
VerticalTile = 13,
|
|
1221
|
-
HorizontalTileEdge = 14,
|
|
1222
|
-
VerticalTileEdge = 15,
|
|
1223
|
-
CheckerTile = 16
|
|
1224
|
-
}
|
|
1225
|
-
export declare class LogEvent {
|
|
1226
|
-
constructor(eventType: LogEventTypes, message?: string);
|
|
1227
|
-
readonly eventType: LogEventTypes;
|
|
1228
|
-
readonly message: string;
|
|
1229
|
-
}
|
|
1230
|
-
declare class ProgressEvent$1 {
|
|
1231
|
-
readonly origin: string | null;
|
|
1232
|
-
readonly progress: Percentage;
|
|
1233
|
-
cancel: boolean;
|
|
1234
|
-
}
|
|
1235
|
-
export declare class MagickError extends Error {
|
|
1236
|
-
private _relatedErrors;
|
|
1237
|
-
readonly severity: MagickErrorSeverity;
|
|
1238
|
-
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1239
|
-
}
|
|
1240
|
-
export declare class WarningEvent {
|
|
1241
|
-
readonly error: MagickError;
|
|
1242
|
-
}
|
|
1243
|
-
export declare enum DngInterpolation {
|
|
1244
|
-
Disabled = -1,
|
|
1245
|
-
Linear = 0,
|
|
1246
|
-
Vng = 1,
|
|
1247
|
-
Ppg = 2,
|
|
1248
|
-
Ahd = 3,
|
|
1249
|
-
DCB = 4,
|
|
1250
|
-
Dht = 11,
|
|
1251
|
-
ModifiedAhd = 12
|
|
1252
|
-
}
|
|
1253
|
-
export declare enum DngOutputColor {
|
|
1254
|
-
Raw = 0,
|
|
1255
|
-
SRGB = 1,
|
|
1256
|
-
AdobeRGB = 2,
|
|
1257
|
-
WideGamutRGB = 3,
|
|
1258
|
-
KodakProPhotoRGB = 4,
|
|
1259
|
-
XYZ = 5,
|
|
1260
|
-
ACES = 6
|
|
1261
|
-
}
|
|
1262
|
-
export declare class DngReadDefines extends DefinesCreator {
|
|
1263
|
-
constructor();
|
|
1264
|
-
disableAutoBrightness?: boolean;
|
|
1265
|
-
interpolationQuality?: DngInterpolation;
|
|
1266
|
-
outputColor?: DngOutputColor;
|
|
1267
|
-
useAutoWhitebalance?: boolean;
|
|
1268
|
-
useCameraWhitebalance?: boolean;
|
|
1269
|
-
getDefines(): IDefine[];
|
|
1270
|
-
}
|
|
1271
|
-
export declare class PrimaryInfo {
|
|
1272
|
-
constructor(x: number, y: number, z: number);
|
|
1273
|
-
readonly x: number;
|
|
1274
|
-
readonly y: number;
|
|
1275
|
-
readonly z: number;
|
|
1276
|
-
}
|
|
1277
|
-
export declare class ChromaticityInfo {
|
|
1278
|
-
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
1279
|
-
readonly red: PrimaryInfo;
|
|
1280
|
-
readonly green: PrimaryInfo;
|
|
1281
|
-
readonly blue: PrimaryInfo;
|
|
1282
|
-
readonly white: PrimaryInfo;
|
|
832
|
+
export declare class MagickReadSettings extends MagickSettings {
|
|
833
|
+
constructor(partialSettings?: Partial<MagickReadSettings>);
|
|
834
|
+
height?: number;
|
|
835
|
+
width?: number;
|
|
836
|
+
private getSize;
|
|
1283
837
|
}
|
|
1284
838
|
export interface IMagickGeometry {
|
|
1285
839
|
readonly aspectRatio: boolean;
|
|
@@ -1295,6 +849,7 @@ export interface IMagickGeometry {
|
|
|
1295
849
|
y: number;
|
|
1296
850
|
}
|
|
1297
851
|
export declare class MagickGeometry implements IMagickGeometry {
|
|
852
|
+
private readonly _includeXyInToString;
|
|
1298
853
|
private _width;
|
|
1299
854
|
private _height;
|
|
1300
855
|
private _x;
|
|
@@ -1338,6 +893,300 @@ export declare class MagickGeometry implements IMagickGeometry {
|
|
|
1338
893
|
private isNumber;
|
|
1339
894
|
private hasFlag;
|
|
1340
895
|
}
|
|
896
|
+
export declare class MontageSettings {
|
|
897
|
+
backgroundColor?: IMagickColor;
|
|
898
|
+
borderColor?: IMagickColor;
|
|
899
|
+
borderWidth?: number;
|
|
900
|
+
fillColor?: IMagickColor;
|
|
901
|
+
font?: string;
|
|
902
|
+
fontPointsize?: number;
|
|
903
|
+
frameGeometry?: IMagickGeometry;
|
|
904
|
+
geometry?: IMagickGeometry;
|
|
905
|
+
gravity?: Gravity;
|
|
906
|
+
label?: string;
|
|
907
|
+
shadow?: boolean;
|
|
908
|
+
strokeColor?: IMagickColor;
|
|
909
|
+
textureFileName?: string;
|
|
910
|
+
tileGeometry?: IMagickGeometry;
|
|
911
|
+
title?: string;
|
|
912
|
+
transparentColor?: IMagickColor;
|
|
913
|
+
}
|
|
914
|
+
export declare enum DitherMethod {
|
|
915
|
+
Undefined = 0,
|
|
916
|
+
No = 1,
|
|
917
|
+
Riemersma = 2,
|
|
918
|
+
FloydSteinberg = 3
|
|
919
|
+
}
|
|
920
|
+
export declare class QuantizeSettings {
|
|
921
|
+
constructor();
|
|
922
|
+
colors: number;
|
|
923
|
+
colorSpace: ColorSpace;
|
|
924
|
+
ditherMethod?: DitherMethod;
|
|
925
|
+
measureErrors: boolean;
|
|
926
|
+
treeDepth: number;
|
|
927
|
+
}
|
|
928
|
+
export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable {
|
|
929
|
+
appendHorizontally<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
930
|
+
appendHorizontally<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
931
|
+
appendVertically<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
932
|
+
appendVertically<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
933
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
934
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
935
|
+
coalesce(): void;
|
|
936
|
+
combine<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
937
|
+
combine<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
938
|
+
combine<TReturnType>(colorSpace: ColorSpace, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
939
|
+
combine<TReturnType>(colorSpace: ColorSpace, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
940
|
+
complex<TReturnType>(settings: ComplexSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
941
|
+
complex<TReturnType>(settings: ComplexSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
942
|
+
deconstruct(): void;
|
|
943
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
944
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
945
|
+
flatten<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
946
|
+
flatten<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
947
|
+
fx<TReturnType>(expression: string, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
948
|
+
fx<TReturnType>(expression: string, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
949
|
+
fx<TReturnType>(expression: string, channels: Channels, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
950
|
+
fx<TReturnType>(expression: string, channels: Channels, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
951
|
+
merge<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
952
|
+
merge<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
953
|
+
montage<TReturnType>(settings: MontageSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
954
|
+
montage<TReturnType>(settings: MontageSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
955
|
+
morph(frames: number): void;
|
|
956
|
+
mosaic<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
957
|
+
mosaic<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
958
|
+
optimize(): void;
|
|
959
|
+
optimizePlus(): void;
|
|
960
|
+
optimizeTransparency(): void;
|
|
961
|
+
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
962
|
+
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
963
|
+
polynomial<TReturnType>(terms: number[], func: SyncImageCallback<TReturnType>): TReturnType;
|
|
964
|
+
polynomial<TReturnType>(terms: number[], func: AsyncImageCallback<TReturnType>): TReturnType | Promise<TReturnType>;
|
|
965
|
+
quantize(settings?: QuantizeSettings): MagickErrorInfo | null;
|
|
966
|
+
read(fileName: string, settings?: MagickReadSettings): void;
|
|
967
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
968
|
+
remap(image: IMagickImage): void;
|
|
969
|
+
remap(image: IMagickImage, settings: QuantizeSettings): void;
|
|
970
|
+
resetPage(): void;
|
|
971
|
+
smushHorizontal<TReturnType>(offset: number, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
972
|
+
smushHorizontal<TReturnType>(offset: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
973
|
+
smushVertical<TReturnType>(offset: number, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
974
|
+
smushVertical<TReturnType>(offset: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
975
|
+
trimBounds(): void;
|
|
976
|
+
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
977
|
+
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
978
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
979
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
980
|
+
}
|
|
981
|
+
export declare class MagickImageCollection extends Array<MagickImage> implements IMagickImageCollection {
|
|
982
|
+
private constructor();
|
|
983
|
+
static create(): IMagickImageCollection;
|
|
984
|
+
static create(array: ByteArray): IMagickImageCollection;
|
|
985
|
+
dispose(): void;
|
|
986
|
+
appendHorizontally<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
987
|
+
appendHorizontally<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
988
|
+
appendVertically<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
989
|
+
appendVertically<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
990
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
991
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
992
|
+
coalesce(): void;
|
|
993
|
+
combine<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
994
|
+
combine<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
995
|
+
combine<TReturnType>(colorSpace: ColorSpace, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
996
|
+
combine<TReturnType>(colorSpace: ColorSpace, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
997
|
+
complex<TReturnType>(settings: ComplexSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
998
|
+
complex<TReturnType>(settings: ComplexSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
999
|
+
deconstruct(): void;
|
|
1000
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1001
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1002
|
+
flatten<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1003
|
+
flatten<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1004
|
+
fx<TReturnType>(expression: string, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1005
|
+
fx<TReturnType>(expression: string, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1006
|
+
fx<TReturnType>(expression: string, channels: Channels, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1007
|
+
fx<TReturnType>(expression: string, channels: Channels, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1008
|
+
merge<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1009
|
+
merge<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1010
|
+
montage<TReturnType>(settings: MontageSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1011
|
+
montage<TReturnType>(settings: MontageSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1012
|
+
morph(frames: number): void;
|
|
1013
|
+
mosaic<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1014
|
+
mosaic<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1015
|
+
optimize(): void;
|
|
1016
|
+
optimizePlus(): void;
|
|
1017
|
+
optimizeTransparency(): void;
|
|
1018
|
+
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
1019
|
+
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1020
|
+
polynomial<TReturnType>(terms: number[], func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1021
|
+
polynomial<TReturnType>(terms: number[], func: AsyncImageCallback<TReturnType>): TReturnType;
|
|
1022
|
+
quantize(settingsOrUndefined?: QuantizeSettings): MagickErrorInfo | null;
|
|
1023
|
+
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1024
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1025
|
+
remap(image: IMagickImage): void;
|
|
1026
|
+
remap(image: IMagickImage, settings: QuantizeSettings): void;
|
|
1027
|
+
resetPage(): void;
|
|
1028
|
+
smushHorizontal<TReturnType>(offset: number, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1029
|
+
smushHorizontal<TReturnType>(offset: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1030
|
+
smushVertical<TReturnType>(offset: number, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1031
|
+
smushVertical<TReturnType>(offset: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1032
|
+
trimBounds(): void;
|
|
1033
|
+
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1034
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1035
|
+
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1036
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1037
|
+
private addImages;
|
|
1038
|
+
private attachImages;
|
|
1039
|
+
private checkResult;
|
|
1040
|
+
private static createObject;
|
|
1041
|
+
private createImage;
|
|
1042
|
+
private getSettings;
|
|
1043
|
+
private mergeImages;
|
|
1044
|
+
private readOrPing;
|
|
1045
|
+
private replaceImages;
|
|
1046
|
+
private smush;
|
|
1047
|
+
private throwIfEmpty;
|
|
1048
|
+
}
|
|
1049
|
+
export type AsyncImageCallback<TReturnType> = (image: IMagickImage) => Promise<TReturnType>;
|
|
1050
|
+
export type SyncImageCallback<TReturnType> = (image: IMagickImage) => TReturnType;
|
|
1051
|
+
export type ImageCallback<TReturnType> = (image: IMagickImage) => TReturnType | Promise<TReturnType>;
|
|
1052
|
+
export type AsyncImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => Promise<TReturnType>;
|
|
1053
|
+
export type SyncImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => TReturnType;
|
|
1054
|
+
export type ImageCollectionCallback<TReturnType> = (images: IMagickImageCollection) => TReturnType | Promise<TReturnType>;
|
|
1055
|
+
export declare enum AutoThresholdMethod {
|
|
1056
|
+
Undefined = 0,
|
|
1057
|
+
Kapur = 1,
|
|
1058
|
+
OTSU = 2,
|
|
1059
|
+
Triangle = 3
|
|
1060
|
+
}
|
|
1061
|
+
export declare class PrimaryInfo {
|
|
1062
|
+
constructor(x: number, y: number, z: number);
|
|
1063
|
+
readonly x: number;
|
|
1064
|
+
readonly y: number;
|
|
1065
|
+
readonly z: number;
|
|
1066
|
+
}
|
|
1067
|
+
export declare class ChromaticityInfo {
|
|
1068
|
+
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
1069
|
+
readonly red: PrimaryInfo;
|
|
1070
|
+
readonly green: PrimaryInfo;
|
|
1071
|
+
readonly blue: PrimaryInfo;
|
|
1072
|
+
readonly white: PrimaryInfo;
|
|
1073
|
+
}
|
|
1074
|
+
export declare enum ClassType {
|
|
1075
|
+
Undefined = 0,
|
|
1076
|
+
Direct = 1,
|
|
1077
|
+
Pseudo = 2
|
|
1078
|
+
}
|
|
1079
|
+
export declare class CompareResult {
|
|
1080
|
+
private constructor();
|
|
1081
|
+
readonly difference: IMagickImage;
|
|
1082
|
+
readonly distortion: number;
|
|
1083
|
+
}
|
|
1084
|
+
export declare enum ErrorMetric {
|
|
1085
|
+
Undefined = 0,
|
|
1086
|
+
Absolute = 1,
|
|
1087
|
+
Fuzz = 2,
|
|
1088
|
+
MeanAbsolute = 3,
|
|
1089
|
+
MeanErrorPerPixel = 4,
|
|
1090
|
+
MeanSquared = 5,
|
|
1091
|
+
NormalizedCrossCorrelation = 6,
|
|
1092
|
+
PeakAbsolute = 7,
|
|
1093
|
+
PeakSignalToNoiseRatio = 8,
|
|
1094
|
+
PerceptualHash = 9,
|
|
1095
|
+
RootMeanSquared = 10,
|
|
1096
|
+
StructuralSimilarity = 11,
|
|
1097
|
+
StructuralDissimilarity = 12
|
|
1098
|
+
}
|
|
1099
|
+
export declare class CompareSettings {
|
|
1100
|
+
constructor(metric: ErrorMetric);
|
|
1101
|
+
readonly metric: ErrorMetric;
|
|
1102
|
+
highlightColor?: IMagickColor;
|
|
1103
|
+
lowlightColor?: IMagickColor;
|
|
1104
|
+
masklightColor?: IMagickColor;
|
|
1105
|
+
}
|
|
1106
|
+
export declare enum CompositeOperator {
|
|
1107
|
+
Undefined = 0,
|
|
1108
|
+
Alpha = 1,
|
|
1109
|
+
Atop = 2,
|
|
1110
|
+
Blend = 3,
|
|
1111
|
+
Blur = 4,
|
|
1112
|
+
Bumpmap = 5,
|
|
1113
|
+
ChangeMask = 6,
|
|
1114
|
+
Clear = 7,
|
|
1115
|
+
ColorBurn = 8,
|
|
1116
|
+
ColorDodge = 9,
|
|
1117
|
+
Colorize = 10,
|
|
1118
|
+
CopyBlack = 11,
|
|
1119
|
+
CopyBlue = 12,
|
|
1120
|
+
Copy = 13,
|
|
1121
|
+
CopyCyan = 14,
|
|
1122
|
+
CopyGreen = 15,
|
|
1123
|
+
CopyMagenta = 16,
|
|
1124
|
+
CopyAlpha = 17,
|
|
1125
|
+
CopyRed = 18,
|
|
1126
|
+
CopyYellow = 19,
|
|
1127
|
+
Darken = 20,
|
|
1128
|
+
DarkenIntensity = 21,
|
|
1129
|
+
Difference = 22,
|
|
1130
|
+
Displace = 23,
|
|
1131
|
+
Dissolve = 24,
|
|
1132
|
+
Distort = 25,
|
|
1133
|
+
DivideDst = 26,
|
|
1134
|
+
DivideSrc = 27,
|
|
1135
|
+
DstAtop = 28,
|
|
1136
|
+
Dst = 29,
|
|
1137
|
+
DstIn = 30,
|
|
1138
|
+
DstOut = 31,
|
|
1139
|
+
DstOver = 32,
|
|
1140
|
+
Exclusion = 33,
|
|
1141
|
+
HardLight = 34,
|
|
1142
|
+
HardMix = 35,
|
|
1143
|
+
Hue = 36,
|
|
1144
|
+
In = 37,
|
|
1145
|
+
Intensity = 38,
|
|
1146
|
+
Lighten = 39,
|
|
1147
|
+
LightenIntensity = 40,
|
|
1148
|
+
LinearBurn = 41,
|
|
1149
|
+
LinearDodge = 42,
|
|
1150
|
+
LinearLight = 43,
|
|
1151
|
+
Luminize = 44,
|
|
1152
|
+
Mathematics = 45,
|
|
1153
|
+
MinusDst = 46,
|
|
1154
|
+
MinusSrc = 47,
|
|
1155
|
+
Modulate = 48,
|
|
1156
|
+
ModulusAdd = 49,
|
|
1157
|
+
ModulusSubtract = 50,
|
|
1158
|
+
Multiply = 51,
|
|
1159
|
+
No = 52,
|
|
1160
|
+
Out = 53,
|
|
1161
|
+
Over = 54,
|
|
1162
|
+
Overlay = 55,
|
|
1163
|
+
PegtopLight = 56,
|
|
1164
|
+
PinLight = 57,
|
|
1165
|
+
Plus = 58,
|
|
1166
|
+
Replace = 59,
|
|
1167
|
+
Saturate = 60,
|
|
1168
|
+
Screen = 61,
|
|
1169
|
+
SoftLight = 62,
|
|
1170
|
+
SrcAtop = 63,
|
|
1171
|
+
Src = 64,
|
|
1172
|
+
SrcIn = 65,
|
|
1173
|
+
SrcOut = 66,
|
|
1174
|
+
SrcOver = 67,
|
|
1175
|
+
Threshold = 68,
|
|
1176
|
+
VividLight = 69,
|
|
1177
|
+
Xor = 70,
|
|
1178
|
+
Stereo = 71,
|
|
1179
|
+
Freeze = 72,
|
|
1180
|
+
Interpolate = 73,
|
|
1181
|
+
Negate = 74,
|
|
1182
|
+
Reflect = 75,
|
|
1183
|
+
SoftBurn = 76,
|
|
1184
|
+
SoftDodge = 77,
|
|
1185
|
+
Stamp = 78,
|
|
1186
|
+
RMSE = 79,
|
|
1187
|
+
SaliencyBlend = 80,
|
|
1188
|
+
SeamlessBlend = 81
|
|
1189
|
+
}
|
|
1341
1190
|
export declare class Point {
|
|
1342
1191
|
constructor(xy: number);
|
|
1343
1192
|
constructor(x: number, y: number);
|
|
@@ -1376,6 +1225,11 @@ export declare class ConnectedComponentsSettings {
|
|
|
1376
1225
|
perimeterThreshold?: Threshold;
|
|
1377
1226
|
constructor(connectivity: Connectivity);
|
|
1378
1227
|
}
|
|
1228
|
+
export declare enum DensityUnit {
|
|
1229
|
+
Undefined = 0,
|
|
1230
|
+
PixelsPerInch = 1,
|
|
1231
|
+
PixelsPerCentimeter = 2
|
|
1232
|
+
}
|
|
1379
1233
|
export declare class Density {
|
|
1380
1234
|
constructor(xy: number);
|
|
1381
1235
|
constructor(xy: number, unit: DensityUnit);
|
|
@@ -1384,6 +1238,28 @@ export declare class Density {
|
|
|
1384
1238
|
readonly y: number;
|
|
1385
1239
|
readonly units: DensityUnit;
|
|
1386
1240
|
}
|
|
1241
|
+
export declare enum DistortMethod {
|
|
1242
|
+
Undefined = 0,
|
|
1243
|
+
Affine = 1,
|
|
1244
|
+
AffineProjection = 2,
|
|
1245
|
+
ScaleRotateTranslate = 3,
|
|
1246
|
+
Perspective = 4,
|
|
1247
|
+
PerspectiveProjection = 5,
|
|
1248
|
+
BilinearForward = 6,
|
|
1249
|
+
BilinearReverse = 7,
|
|
1250
|
+
Polynomial = 8,
|
|
1251
|
+
Arc = 9,
|
|
1252
|
+
Polar = 10,
|
|
1253
|
+
DePolar = 11,
|
|
1254
|
+
Cylinder2Plane = 12,
|
|
1255
|
+
Plane2Cylinder = 13,
|
|
1256
|
+
Barrel = 14,
|
|
1257
|
+
BarrelInverse = 15,
|
|
1258
|
+
Shepards = 16,
|
|
1259
|
+
Resize = 17,
|
|
1260
|
+
Sentinel = 18,
|
|
1261
|
+
RigidAffine = 19
|
|
1262
|
+
}
|
|
1387
1263
|
export declare class DistortSettings {
|
|
1388
1264
|
constructor(method: DistortMethod);
|
|
1389
1265
|
readonly method: DistortMethod;
|
|
@@ -1391,6 +1267,46 @@ export declare class DistortSettings {
|
|
|
1391
1267
|
scale?: number;
|
|
1392
1268
|
viewport?: IMagickGeometry;
|
|
1393
1269
|
}
|
|
1270
|
+
export declare enum FilterType {
|
|
1271
|
+
Undefined = 0,
|
|
1272
|
+
Point = 1,
|
|
1273
|
+
Box = 2,
|
|
1274
|
+
Triangle = 3,
|
|
1275
|
+
Hermite = 4,
|
|
1276
|
+
Hann = 5,
|
|
1277
|
+
Hamming = 6,
|
|
1278
|
+
Blackman = 7,
|
|
1279
|
+
Gaussian = 8,
|
|
1280
|
+
Quadratic = 9,
|
|
1281
|
+
Cubic = 10,
|
|
1282
|
+
Catrom = 11,
|
|
1283
|
+
Mitchell = 12,
|
|
1284
|
+
Jinc = 13,
|
|
1285
|
+
Sinc = 14,
|
|
1286
|
+
SincFast = 15,
|
|
1287
|
+
Kaiser = 16,
|
|
1288
|
+
Welch = 17,
|
|
1289
|
+
Parzen = 18,
|
|
1290
|
+
Bohman = 19,
|
|
1291
|
+
Bartlett = 20,
|
|
1292
|
+
Lagrange = 21,
|
|
1293
|
+
Lanczos = 22,
|
|
1294
|
+
LanczosSharp = 23,
|
|
1295
|
+
Lanczos2 = 24,
|
|
1296
|
+
Lanczos2Sharp = 25,
|
|
1297
|
+
Robidoux = 26,
|
|
1298
|
+
RobidouxSharp = 27,
|
|
1299
|
+
Cosine = 28,
|
|
1300
|
+
Spline = 29,
|
|
1301
|
+
LanczosRadius = 30,
|
|
1302
|
+
CubicSpline = 31
|
|
1303
|
+
}
|
|
1304
|
+
export declare enum GifDisposeMethod {
|
|
1305
|
+
Undefined = 0,
|
|
1306
|
+
None = 1,
|
|
1307
|
+
Background = 2,
|
|
1308
|
+
Previous = 3
|
|
1309
|
+
}
|
|
1394
1310
|
export interface IImageProfile {
|
|
1395
1311
|
readonly name: string;
|
|
1396
1312
|
readonly data: Uint8Array;
|
|
@@ -1400,120 +1316,70 @@ export declare class ImageProfile implements IImageProfile {
|
|
|
1400
1316
|
readonly name: string;
|
|
1401
1317
|
readonly data: Uint8Array;
|
|
1402
1318
|
}
|
|
1403
|
-
export declare
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
fontPointsize?: number;
|
|
1443
|
-
frameGeometry?: IMagickGeometry;
|
|
1444
|
-
geometry?: IMagickGeometry;
|
|
1445
|
-
gravity?: Gravity;
|
|
1446
|
-
label?: string;
|
|
1447
|
-
shadow?: boolean;
|
|
1448
|
-
strokeColor?: IMagickColor;
|
|
1449
|
-
textureFileName?: string;
|
|
1450
|
-
tileGeometry?: IMagickGeometry;
|
|
1451
|
-
title?: string;
|
|
1452
|
-
transparentColor?: IMagickColor;
|
|
1453
|
-
}
|
|
1454
|
-
export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable {
|
|
1455
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1456
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1457
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1458
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1459
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1460
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1461
|
-
coalesce(): void;
|
|
1462
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1463
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1464
|
-
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1465
|
-
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1466
|
-
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1467
|
-
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1468
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1469
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1470
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1471
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1472
|
-
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1473
|
-
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1474
|
-
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1475
|
-
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1476
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1477
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1319
|
+
export declare enum Kernel {
|
|
1320
|
+
Undefined = "Undefined",
|
|
1321
|
+
Unity = "Unity",
|
|
1322
|
+
Gaussian = "Gaussian",
|
|
1323
|
+
DoG = "DoG",
|
|
1324
|
+
LoG = "LoG",
|
|
1325
|
+
Blur = "Blur",
|
|
1326
|
+
Comet = "Comet",
|
|
1327
|
+
Binomial = "Binomial",
|
|
1328
|
+
Laplacian = "Laplacian",
|
|
1329
|
+
Sobel = "Sobel",
|
|
1330
|
+
FreiChen = "FreiChen",
|
|
1331
|
+
Roberts = "Roberts",
|
|
1332
|
+
Prewitt = "Prewitt",
|
|
1333
|
+
Compass = "Compass",
|
|
1334
|
+
Kirsch = "Kirsch",
|
|
1335
|
+
Diamond = "Diamond",
|
|
1336
|
+
Square = "Square",
|
|
1337
|
+
Rectangle = "Rectangle",
|
|
1338
|
+
Octagon = "Octagon",
|
|
1339
|
+
Disk = "Disk",
|
|
1340
|
+
Plus = "Plus",
|
|
1341
|
+
Cross = "Cross",
|
|
1342
|
+
Ring = "Ring",
|
|
1343
|
+
Peaks = "Peaks",
|
|
1344
|
+
Edges = "Edges",
|
|
1345
|
+
Corners = "Corners",
|
|
1346
|
+
Diagonals = "Diagonals",
|
|
1347
|
+
LineEnds = "LineEnds",
|
|
1348
|
+
LineJunctions = "LineJunctions",
|
|
1349
|
+
Ridges = "Ridges",
|
|
1350
|
+
ConvexHull = "ConvexHull",
|
|
1351
|
+
ThinSE = "ThinSE",
|
|
1352
|
+
Skeleton = "Skeleton",
|
|
1353
|
+
Chebyshev = "Chebyshev",
|
|
1354
|
+
Manhattan = "Manhattan",
|
|
1355
|
+
Octagonal = "Octagonal",
|
|
1356
|
+
Euclidean = "Euclidean",
|
|
1357
|
+
UserDefined = "UserDefined"
|
|
1478
1358
|
}
|
|
1479
|
-
export declare
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1504
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1505
|
-
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1506
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1507
|
-
private addImages;
|
|
1508
|
-
private attachImages;
|
|
1509
|
-
private static createObject;
|
|
1510
|
-
private createImage;
|
|
1511
|
-
private static createSettings;
|
|
1512
|
-
private detachImages;
|
|
1513
|
-
private getSettings;
|
|
1514
|
-
private mergeImages;
|
|
1515
|
-
private throwIfEmpty;
|
|
1516
|
-
private checkResult;
|
|
1359
|
+
export declare enum MorphologyMethod {
|
|
1360
|
+
Undefined = 0,
|
|
1361
|
+
Convolve = 1,
|
|
1362
|
+
Correlate = 2,
|
|
1363
|
+
Erode = 3,
|
|
1364
|
+
Dilate = 4,
|
|
1365
|
+
ErodeIntensity = 5,
|
|
1366
|
+
DilateIntensity = 6,
|
|
1367
|
+
IterativeDistance = 7,
|
|
1368
|
+
Open = 8,
|
|
1369
|
+
Close = 9,
|
|
1370
|
+
OpenIntensity = 10,
|
|
1371
|
+
CloseIntensity = 11,
|
|
1372
|
+
Smooth = 12,
|
|
1373
|
+
EdgeIn = 13,
|
|
1374
|
+
EdgeOut = 14,
|
|
1375
|
+
Edge = 15,
|
|
1376
|
+
TopHat = 16,
|
|
1377
|
+
BottomHat = 17,
|
|
1378
|
+
HitAndMiss = 18,
|
|
1379
|
+
Thinning = 19,
|
|
1380
|
+
Thicken = 20,
|
|
1381
|
+
Distance = 21,
|
|
1382
|
+
Voronoi = 22
|
|
1517
1383
|
}
|
|
1518
1384
|
export declare class MorphologySettings {
|
|
1519
1385
|
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
@@ -1524,6 +1390,83 @@ export declare class MorphologySettings {
|
|
|
1524
1390
|
readonly kernel: string;
|
|
1525
1391
|
readonly method: MorphologyMethod;
|
|
1526
1392
|
}
|
|
1393
|
+
declare enum OrientationType$1 {
|
|
1394
|
+
Undefined = 0,
|
|
1395
|
+
TopLeft = 1,
|
|
1396
|
+
TopRight = 2,
|
|
1397
|
+
BottomRight = 3,
|
|
1398
|
+
BottomLeft = 4,
|
|
1399
|
+
LeftTop = 5,
|
|
1400
|
+
RightTop = 6,
|
|
1401
|
+
RightBottom = 7,
|
|
1402
|
+
LeftBottom = 8
|
|
1403
|
+
}
|
|
1404
|
+
export declare enum PixelChannel {
|
|
1405
|
+
Red = 0,
|
|
1406
|
+
Cyan = 0,
|
|
1407
|
+
Gray = 0,
|
|
1408
|
+
Green = 1,
|
|
1409
|
+
Magenta = 1,
|
|
1410
|
+
Blue = 2,
|
|
1411
|
+
Yellow = 2,
|
|
1412
|
+
Black = 3,
|
|
1413
|
+
Alpha = 4,
|
|
1414
|
+
Index = 5,
|
|
1415
|
+
Meta0 = 10,
|
|
1416
|
+
Meta1 = 11,
|
|
1417
|
+
Meta2 = 12,
|
|
1418
|
+
Meta3 = 13,
|
|
1419
|
+
Meta4 = 14,
|
|
1420
|
+
Meta5 = 15,
|
|
1421
|
+
Meta6 = 16,
|
|
1422
|
+
Meta7 = 17,
|
|
1423
|
+
Meta8 = 18,
|
|
1424
|
+
Meta9 = 19,
|
|
1425
|
+
Meta10 = 20,
|
|
1426
|
+
Meta11 = 21,
|
|
1427
|
+
Meta12 = 22,
|
|
1428
|
+
Meta13 = 23,
|
|
1429
|
+
Meta14 = 24,
|
|
1430
|
+
Meta15 = 25,
|
|
1431
|
+
Meta16 = 26,
|
|
1432
|
+
Meta17 = 27,
|
|
1433
|
+
Meta18 = 28,
|
|
1434
|
+
Meta19 = 29,
|
|
1435
|
+
Meta20 = 30,
|
|
1436
|
+
Meta21 = 31,
|
|
1437
|
+
Meta22 = 32,
|
|
1438
|
+
Meta23 = 33,
|
|
1439
|
+
Meta24 = 34,
|
|
1440
|
+
Meta25 = 35,
|
|
1441
|
+
Meta26 = 36,
|
|
1442
|
+
Meta27 = 37,
|
|
1443
|
+
Meta28 = 38,
|
|
1444
|
+
Meta29 = 39,
|
|
1445
|
+
Meta30 = 40,
|
|
1446
|
+
Meta31 = 41,
|
|
1447
|
+
Meta32 = 42,
|
|
1448
|
+
Meta33 = 43,
|
|
1449
|
+
Meta34 = 44,
|
|
1450
|
+
Meta35 = 45,
|
|
1451
|
+
Meta36 = 46,
|
|
1452
|
+
Meta37 = 47,
|
|
1453
|
+
Meta38 = 48,
|
|
1454
|
+
Meta39 = 49,
|
|
1455
|
+
Meta40 = 50,
|
|
1456
|
+
Meta41 = 51,
|
|
1457
|
+
Meta42 = 52,
|
|
1458
|
+
Meta43 = 53,
|
|
1459
|
+
Meta44 = 54,
|
|
1460
|
+
Meta45 = 55,
|
|
1461
|
+
Meta46 = 56,
|
|
1462
|
+
Meta47 = 57,
|
|
1463
|
+
Meta48 = 58,
|
|
1464
|
+
Meta49 = 59,
|
|
1465
|
+
Meta50 = 60,
|
|
1466
|
+
Meta51 = 61,
|
|
1467
|
+
Meta52 = 62,
|
|
1468
|
+
Composite = 64
|
|
1469
|
+
}
|
|
1527
1470
|
export type quantumArray = Uint8Array;
|
|
1528
1471
|
export interface IPixelCollection extends IDisposable {
|
|
1529
1472
|
getArea(x: number, y: number, width: number, height: number): quantumArray;
|
|
@@ -1546,13 +1489,43 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
|
|
|
1546
1489
|
toByteArray(x: number, y: number, width: number, height: number, mapping: string): Uint8Array | null;
|
|
1547
1490
|
private use;
|
|
1548
1491
|
}
|
|
1549
|
-
export declare
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1492
|
+
export declare enum PixelIntensityMethod {
|
|
1493
|
+
Undefined = 0,
|
|
1494
|
+
Average = 1,
|
|
1495
|
+
Brightness = 2,
|
|
1496
|
+
Lightness = 3,
|
|
1497
|
+
MS = 4,
|
|
1498
|
+
Rec601Luma = 5,
|
|
1499
|
+
Rec601Luminance = 6,
|
|
1500
|
+
Rec709Luma = 7,
|
|
1501
|
+
Rec709Luminance = 8,
|
|
1502
|
+
RMS = 9
|
|
1503
|
+
}
|
|
1504
|
+
export declare enum PixelInterpolateMethod {
|
|
1505
|
+
Undefined = 0,
|
|
1506
|
+
Average = 1,
|
|
1507
|
+
Average9 = 2,
|
|
1508
|
+
Average16 = 3,
|
|
1509
|
+
Background = 4,
|
|
1510
|
+
Bilinear = 5,
|
|
1511
|
+
Blend = 6,
|
|
1512
|
+
Catrom = 7,
|
|
1513
|
+
Integer = 8,
|
|
1514
|
+
Mesh = 9,
|
|
1515
|
+
Nearest = 10,
|
|
1516
|
+
Spline = 11
|
|
1517
|
+
}
|
|
1518
|
+
declare class ProgressEvent$1 {
|
|
1519
|
+
readonly origin: string | null;
|
|
1520
|
+
readonly progress: Percentage;
|
|
1521
|
+
cancel: boolean;
|
|
1522
|
+
}
|
|
1523
|
+
export declare enum RenderingIntent {
|
|
1524
|
+
Undefined = 0,
|
|
1525
|
+
Saturation = 1,
|
|
1526
|
+
Perceptual = 2,
|
|
1527
|
+
Absolute = 3,
|
|
1528
|
+
Relative = 4
|
|
1556
1529
|
}
|
|
1557
1530
|
export interface IChannelStatistics {
|
|
1558
1531
|
readonly channel: PixelChannel;
|
|
@@ -1570,6 +1543,81 @@ export interface IStatistics {
|
|
|
1570
1543
|
composite(): IChannelStatistics;
|
|
1571
1544
|
getChannel(channel: PixelChannel): IChannelStatistics | null;
|
|
1572
1545
|
}
|
|
1546
|
+
export declare enum VirtualPixelMethod {
|
|
1547
|
+
Undefined = 0,
|
|
1548
|
+
Background = 1,
|
|
1549
|
+
Dither = 2,
|
|
1550
|
+
Edge = 3,
|
|
1551
|
+
Mirror = 4,
|
|
1552
|
+
Random = 5,
|
|
1553
|
+
Tile = 6,
|
|
1554
|
+
Transparent = 7,
|
|
1555
|
+
Mask = 8,
|
|
1556
|
+
Black = 9,
|
|
1557
|
+
Gray = 10,
|
|
1558
|
+
White = 11,
|
|
1559
|
+
HorizontalTile = 12,
|
|
1560
|
+
VerticalTile = 13,
|
|
1561
|
+
HorizontalTileEdge = 14,
|
|
1562
|
+
VerticalTileEdge = 15,
|
|
1563
|
+
CheckerTile = 16
|
|
1564
|
+
}
|
|
1565
|
+
export declare enum MagickErrorSeverity {
|
|
1566
|
+
Warning = 300,
|
|
1567
|
+
ResourceLimitWarning = 300,
|
|
1568
|
+
TypeWarning = 305,
|
|
1569
|
+
OptionWarning = 310,
|
|
1570
|
+
DelegateWarning = 315,
|
|
1571
|
+
MissingDelegateWarning = 320,
|
|
1572
|
+
CorruptImageWarning = 325,
|
|
1573
|
+
FileOpenWarning = 330,
|
|
1574
|
+
BlobWarning = 335,
|
|
1575
|
+
StreamWarning = 340,
|
|
1576
|
+
CacheWarning = 345,
|
|
1577
|
+
CoderWarning = 350,
|
|
1578
|
+
FilterWarning = 352,
|
|
1579
|
+
ModuleWarning = 355,
|
|
1580
|
+
DrawWarning = 360,
|
|
1581
|
+
ImageWarning = 365,
|
|
1582
|
+
WandWarning = 370,
|
|
1583
|
+
RandomWarning = 375,
|
|
1584
|
+
XServerWarning = 380,
|
|
1585
|
+
MonitorWarning = 385,
|
|
1586
|
+
RegistryWarning = 390,
|
|
1587
|
+
ConfigureWarning = 395,
|
|
1588
|
+
PolicyWarning = 399,
|
|
1589
|
+
Error = 400,
|
|
1590
|
+
ResourceLimitError = 400,
|
|
1591
|
+
TypeError = 405,
|
|
1592
|
+
OptionError = 410,
|
|
1593
|
+
DelegateError = 415,
|
|
1594
|
+
MissingDelegateError = 420,
|
|
1595
|
+
CorruptImageError = 425,
|
|
1596
|
+
FileOpenError = 430,
|
|
1597
|
+
BlobError = 435,
|
|
1598
|
+
StreamError = 440,
|
|
1599
|
+
CacheError = 445,
|
|
1600
|
+
CoderError = 450,
|
|
1601
|
+
FilterError = 452,
|
|
1602
|
+
ModuleError = 455,
|
|
1603
|
+
DrawError = 460,
|
|
1604
|
+
ImageError = 465,
|
|
1605
|
+
WandError = 470,
|
|
1606
|
+
RandomError = 475,
|
|
1607
|
+
XServerError = 480,
|
|
1608
|
+
MonitorError = 485,
|
|
1609
|
+
RegistryError = 490,
|
|
1610
|
+
ConfigureError = 495,
|
|
1611
|
+
PolicyError = 499
|
|
1612
|
+
}
|
|
1613
|
+
export declare class MagickError extends Error {
|
|
1614
|
+
private _relatedErrors;
|
|
1615
|
+
readonly severity: MagickErrorSeverity;
|
|
1616
|
+
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1617
|
+
}
|
|
1618
|
+
export declare class WarningEvent {
|
|
1619
|
+
readonly error: MagickError;
|
|
1620
|
+
}
|
|
1573
1621
|
export interface IMagickImage extends IDisposable {
|
|
1574
1622
|
animationDelay: number;
|
|
1575
1623
|
animationIterations: number;
|
|
@@ -1609,9 +1657,10 @@ export interface IMagickImage extends IDisposable {
|
|
|
1609
1657
|
label: string | null;
|
|
1610
1658
|
matteColor: IMagickColor;
|
|
1611
1659
|
orientation: OrientationType$1;
|
|
1612
|
-
page: IMagickGeometry;
|
|
1613
1660
|
onProgress?: (event: ProgressEvent$1) => void;
|
|
1614
1661
|
onWarning?: (event: WarningEvent) => void;
|
|
1662
|
+
page: IMagickGeometry;
|
|
1663
|
+
readonly profileNames: ReadonlyArray<string>;
|
|
1615
1664
|
quality: number;
|
|
1616
1665
|
renderingIntent: RenderingIntent;
|
|
1617
1666
|
readonly settings: MagickSettings;
|
|
@@ -1619,7 +1668,14 @@ export interface IMagickImage extends IDisposable {
|
|
|
1619
1668
|
readonly totalColors: number;
|
|
1620
1669
|
virtualPixelMethod: VirtualPixelMethod;
|
|
1621
1670
|
width: number;
|
|
1671
|
+
adaptiveBlur(): void;
|
|
1672
|
+
adaptiveBlur(radius: number): void;
|
|
1673
|
+
adaptiveBlur(radius: number, sigma: number): void;
|
|
1622
1674
|
alpha(value: AlphaOption$1): void;
|
|
1675
|
+
autoGamma(): void;
|
|
1676
|
+
autoGamma(channels: Channels): void;
|
|
1677
|
+
autoLevel(): void;
|
|
1678
|
+
autoLevel(channels: Channels): void;
|
|
1623
1679
|
autoOrient(): void;
|
|
1624
1680
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
1625
1681
|
blur(): void;
|
|
@@ -1634,11 +1690,19 @@ export interface IMagickImage extends IDisposable {
|
|
|
1634
1690
|
charcoal(radius: number, sigma: number): void;
|
|
1635
1691
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
1636
1692
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
1637
|
-
clone<TReturnType>(func:
|
|
1638
|
-
clone<TReturnType>(func:
|
|
1693
|
+
clone<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1694
|
+
clone<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1639
1695
|
colorAlpha(color: IMagickColor): void;
|
|
1640
1696
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
1697
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1698
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1699
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, channels: Channels, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1700
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, channels: Channels, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1701
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1702
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1641
1703
|
compare(image: IMagickImage, metric: ErrorMetric, channels: Channels): number;
|
|
1704
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, channels: Channels, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1705
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, channels: Channels, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1642
1706
|
composite(image: IMagickImage): void;
|
|
1643
1707
|
composite(image: IMagickImage, compose: CompositeOperator): void;
|
|
1644
1708
|
composite(image: IMagickImage, compose: CompositeOperator, channels: Channels): void;
|
|
@@ -1695,6 +1759,11 @@ export interface IMagickImage extends IDisposable {
|
|
|
1695
1759
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1696
1760
|
flip(): void;
|
|
1697
1761
|
flop(): void;
|
|
1762
|
+
gammaCorrect(gamma: number): void;
|
|
1763
|
+
gammaCorrect(gamma: number, channels: Channels): void;
|
|
1764
|
+
gaussianBlur(radius: number): void;
|
|
1765
|
+
gaussianBlur(radius: number, sigma: number): void;
|
|
1766
|
+
gaussianBlur(radius: number, sigma: number, channels: Channels): void;
|
|
1698
1767
|
getArtifact(name: string): string | null;
|
|
1699
1768
|
getAttribute(name: string): string | null;
|
|
1700
1769
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
@@ -1708,8 +1777,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1708
1777
|
inverseContrast(): void;
|
|
1709
1778
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1710
1779
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1711
|
-
inverseLevel(
|
|
1712
|
-
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1780
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1713
1781
|
inverseOpaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1714
1782
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1715
1783
|
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
@@ -1718,8 +1786,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1718
1786
|
inverseTransparent(color: IMagickColor): void;
|
|
1719
1787
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1720
1788
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1721
|
-
level(
|
|
1722
|
-
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1789
|
+
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1723
1790
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1724
1791
|
liquidRescale(geometry: IMagickGeometry): void;
|
|
1725
1792
|
liquidRescale(width: number, height: number): void;
|
|
@@ -1738,7 +1805,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1738
1805
|
opaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1739
1806
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
1740
1807
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1741
|
-
quantize(settings
|
|
1808
|
+
quantize(settings?: QuantizeSettings): MagickErrorInfo | null;
|
|
1742
1809
|
read(color: IMagickColor, width: number, height: number): void;
|
|
1743
1810
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1744
1811
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
@@ -1748,7 +1815,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1748
1815
|
removeProfile(profile: IImageProfile): void;
|
|
1749
1816
|
removeProfile(name: string): void;
|
|
1750
1817
|
removeWriteMask(): void;
|
|
1751
|
-
|
|
1818
|
+
resetPage(): void;
|
|
1752
1819
|
resize(geometry: IMagickGeometry): void;
|
|
1753
1820
|
resize(width: number, height: number): void;
|
|
1754
1821
|
rotate(degrees: number): void;
|
|
@@ -1759,7 +1826,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1759
1826
|
sepiaTone(): void;
|
|
1760
1827
|
sepiaTone(threshold: number): void;
|
|
1761
1828
|
sepiaTone(threshold: Percentage): void;
|
|
1762
|
-
setArtifact(name: string, value:
|
|
1829
|
+
setArtifact(name: string, value: boolean | IMagickColor | number | string): void;
|
|
1763
1830
|
setAttribute(name: string, value: string): void;
|
|
1764
1831
|
setProfile(profile: IImageProfile): void;
|
|
1765
1832
|
setProfile(name: string, data: ByteArray): void;
|
|
@@ -1794,7 +1861,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1794
1861
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1795
1862
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1796
1863
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1797
|
-
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
1864
|
+
writeToCanvas(canvas: HTMLCanvasElement, settings?: CanvasRenderingContext2DSettings): void;
|
|
1798
1865
|
}
|
|
1799
1866
|
export declare class MagickImage extends NativeInstance implements IMagickImage {
|
|
1800
1867
|
private readonly _settings;
|
|
@@ -1864,12 +1931,13 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1864
1931
|
set matteColor(value: IMagickColor);
|
|
1865
1932
|
get orientation(): OrientationType$1;
|
|
1866
1933
|
set orientation(value: OrientationType$1);
|
|
1867
|
-
get page(): IMagickGeometry;
|
|
1868
|
-
set page(value: IMagickGeometry);
|
|
1869
1934
|
get onProgress(): ((event: ProgressEvent$1) => number) | undefined;
|
|
1870
1935
|
set onProgress(value: ((event: ProgressEvent$1) => number) | undefined);
|
|
1871
1936
|
get onWarning(): ((event: WarningEvent) => number) | undefined;
|
|
1872
1937
|
set onWarning(value: ((event: WarningEvent) => number) | undefined);
|
|
1938
|
+
get page(): IMagickGeometry;
|
|
1939
|
+
set page(value: IMagickGeometry);
|
|
1940
|
+
get profileNames(): ReadonlyArray<string>;
|
|
1873
1941
|
get quality(): number;
|
|
1874
1942
|
set quality(value: number);
|
|
1875
1943
|
get renderingIntent(): RenderingIntent;
|
|
@@ -1880,7 +1948,12 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1880
1948
|
get virtualPixelMethod(): VirtualPixelMethod;
|
|
1881
1949
|
set virtualPixelMethod(value: VirtualPixelMethod);
|
|
1882
1950
|
get width(): number;
|
|
1951
|
+
adaptiveBlur(): void;
|
|
1952
|
+
adaptiveBlur(radius: number): void;
|
|
1953
|
+
adaptiveBlur(radius: number, sigma: number): void;
|
|
1883
1954
|
alpha(value: AlphaOption$1): void;
|
|
1955
|
+
autoGamma(): void;
|
|
1956
|
+
autoLevel(): void;
|
|
1884
1957
|
autoOrient(): void;
|
|
1885
1958
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
1886
1959
|
blur(): void;
|
|
@@ -1895,11 +1968,19 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1895
1968
|
charcoal(radius: number, sigma: number): void;
|
|
1896
1969
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
1897
1970
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
1898
|
-
clone<TReturnType>(func:
|
|
1899
|
-
clone<TReturnType>(func:
|
|
1971
|
+
clone<TReturnType>(func: SyncImageCallback<TReturnType>): TReturnType;
|
|
1972
|
+
clone<TReturnType>(func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
1900
1973
|
colorAlpha(color: IMagickColor): void;
|
|
1901
1974
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
1902
1975
|
compare(image: IMagickImage, metric: ErrorMetric, channels: Channels): number;
|
|
1976
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1977
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1978
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, channels: Channels, func: (compareResult: CompareResult) => TReturnType): TReturnType;
|
|
1979
|
+
compare<TReturnType>(image: IMagickImage, settings: CompareSettings, channels: Channels, func: (compareResult: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1980
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, func: (image: CompareResult) => TReturnType): TReturnType;
|
|
1981
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, func: (image: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1982
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, channels: Channels, func: (result: CompareResult) => TReturnType): TReturnType;
|
|
1983
|
+
compare<TReturnType>(image: IMagickImage, metric: ErrorMetric, channels: Channels, func: (result: CompareResult) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1903
1984
|
composite(image: IMagickImage): void;
|
|
1904
1985
|
composite(image: IMagickImage, compose: CompositeOperator): void;
|
|
1905
1986
|
composite(image: IMagickImage, compose: CompositeOperator, channels: Channels): void;
|
|
@@ -1937,10 +2018,10 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1937
2018
|
crop(geometry: IMagickGeometry, gravity: Gravity): void;
|
|
1938
2019
|
crop(width: number, height: number): void;
|
|
1939
2020
|
crop(width: number, height: number, gravity: Gravity): void;
|
|
1940
|
-
cropToTiles<TReturnType>(geometry: IMagickGeometry, func:
|
|
1941
|
-
cropToTiles<TReturnType>(geometry: IMagickGeometry, func:
|
|
1942
|
-
cropToTiles<TReturnType>(width: number, height: number, func:
|
|
1943
|
-
cropToTiles<TReturnType>(width: number, height: number, func:
|
|
2021
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2022
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2023
|
+
cropToTiles<TReturnType>(width: number, height: number, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2024
|
+
cropToTiles<TReturnType>(width: number, height: number, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
1944
2025
|
deskew(threshold: Percentage): number;
|
|
1945
2026
|
deskew(threshold: Percentage, autoCrop: boolean): number;
|
|
1946
2027
|
distort(method: DistortMethod, params: number[]): void;
|
|
@@ -1960,6 +2041,11 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1960
2041
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1961
2042
|
flip(): void;
|
|
1962
2043
|
flop(): void;
|
|
2044
|
+
gammaCorrect(gamma: number): void;
|
|
2045
|
+
gammaCorrect(gamma: number, channels: Channels): void;
|
|
2046
|
+
gaussianBlur(radius: number): void;
|
|
2047
|
+
gaussianBlur(radius: number, sigma: number): void;
|
|
2048
|
+
gaussianBlur(radius: number, sigma: number, channels: Channels): void;
|
|
1963
2049
|
getArtifact(name: string): string | null;
|
|
1964
2050
|
getAttribute(name: string): string | null;
|
|
1965
2051
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
@@ -1972,8 +2058,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1972
2058
|
inverseContrast: () => void;
|
|
1973
2059
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1974
2060
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1975
|
-
inverseLevel(
|
|
1976
|
-
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
2061
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1977
2062
|
inverseOpaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
1978
2063
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1979
2064
|
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
@@ -1982,8 +2067,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1982
2067
|
inverseTransparent: (color: IMagickColor) => void;
|
|
1983
2068
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1984
2069
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1985
|
-
level(
|
|
1986
|
-
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
2070
|
+
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1987
2071
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1988
2072
|
liquidRescale(geometry: IMagickGeometry): void;
|
|
1989
2073
|
liquidRescale(width: number, height: number): void;
|
|
@@ -2000,7 +2084,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2000
2084
|
opaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
2001
2085
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
2002
2086
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2003
|
-
quantize(
|
|
2087
|
+
quantize(settingsOrUndefined?: QuantizeSettings): MagickErrorInfo | null;
|
|
2004
2088
|
read(color: IMagickColor, width: number, height: number): void;
|
|
2005
2089
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
2006
2090
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
@@ -2010,7 +2094,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2010
2094
|
removeProfile(profile: IImageProfile): void;
|
|
2011
2095
|
removeProfile(name: string): void;
|
|
2012
2096
|
removeWriteMask(): void;
|
|
2013
|
-
|
|
2097
|
+
resetPage(): void;
|
|
2014
2098
|
resize(geometry: IMagickGeometry): void;
|
|
2015
2099
|
resize(width: number, height: number): void;
|
|
2016
2100
|
rotate(degrees: number): void;
|
|
@@ -2019,7 +2103,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2019
2103
|
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
2020
2104
|
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2021
2105
|
sepiaTone(): void;
|
|
2022
|
-
setArtifact(name: string, value:
|
|
2106
|
+
setArtifact(name: string, value: boolean | IMagickColor | number | string): void;
|
|
2023
2107
|
setAttribute(name: string, value: string): void;
|
|
2024
2108
|
setProfile(profile: IImageProfile): void;
|
|
2025
2109
|
setProfile(pname: string, data: ByteArray): void;
|
|
@@ -2052,7 +2136,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2052
2136
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2053
2137
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
2054
2138
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2055
|
-
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
2139
|
+
writeToCanvas(canvas: HTMLCanvasElement, settings?: CanvasRenderingContext2DSettings): void;
|
|
2056
2140
|
protected onDispose(): void;
|
|
2057
2141
|
private _contrast;
|
|
2058
2142
|
private _opaque;
|
|
@@ -2068,35 +2152,127 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2068
2152
|
private useException;
|
|
2069
2153
|
private useExceptionPointer;
|
|
2070
2154
|
}
|
|
2155
|
+
export declare class TypeMetric {
|
|
2156
|
+
private constructor();
|
|
2157
|
+
readonly ascent: number;
|
|
2158
|
+
readonly descent: number;
|
|
2159
|
+
readonly maxHorizontalAdvance: number;
|
|
2160
|
+
readonly textHeight: number;
|
|
2161
|
+
readonly textWidth: number;
|
|
2162
|
+
readonly underlinePosition: number;
|
|
2163
|
+
readonly underlineThickness: number;
|
|
2164
|
+
}
|
|
2165
|
+
export declare class Drawables {
|
|
2166
|
+
private _drawables;
|
|
2167
|
+
disableStrokeAntialias(): Drawables;
|
|
2168
|
+
enableStrokeAntialias(): Drawables;
|
|
2169
|
+
fillColor(color: IMagickColor): Drawables;
|
|
2170
|
+
fillOpacity(opacity: Percentage): Drawables;
|
|
2171
|
+
font(font: string): Drawables;
|
|
2172
|
+
fontPointSize(pointSize: number): Drawables;
|
|
2173
|
+
fontTypeMetrics(text: string, ignoreNewlines?: boolean): TypeMetric | null;
|
|
2174
|
+
gravity(value: Gravity): Drawables;
|
|
2175
|
+
line(startX: number, startY: number, endX: number, endY: number): Drawables;
|
|
2176
|
+
point(x: number, y: number): Drawables;
|
|
2177
|
+
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): Drawables;
|
|
2178
|
+
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): Drawables;
|
|
2179
|
+
strokeColor(color: IMagickColor): Drawables;
|
|
2180
|
+
strokeWidth(width: number): Drawables;
|
|
2181
|
+
text(x: number, y: number, value: string): Drawables;
|
|
2182
|
+
textAlignment(alignment: TextAlignment): Drawables;
|
|
2183
|
+
textDecoration(decoration: TextDecoration): Drawables;
|
|
2184
|
+
textInterlineSpacing(spacing: number): Drawables;
|
|
2185
|
+
textInterwordSpacing(spacing: number): Drawables;
|
|
2186
|
+
textKerning(kerning: number): Drawables;
|
|
2187
|
+
textUnderColor(color: IMagickColor): Drawables;
|
|
2188
|
+
draw(image: IMagickImage): Drawables;
|
|
2189
|
+
}
|
|
2190
|
+
export declare enum LogEventTypes {
|
|
2191
|
+
None = 0,
|
|
2192
|
+
Accelerate = 1,
|
|
2193
|
+
Annotate = 2,
|
|
2194
|
+
Blob = 4,
|
|
2195
|
+
Cache = 8,
|
|
2196
|
+
Coder = 16,
|
|
2197
|
+
Configure = 32,
|
|
2198
|
+
Deprecate = 64,
|
|
2199
|
+
Draw = 128,
|
|
2200
|
+
Exception = 256,
|
|
2201
|
+
Image = 512,
|
|
2202
|
+
Locale = 1024,
|
|
2203
|
+
Module = 2048,
|
|
2204
|
+
Pixel = 4096,
|
|
2205
|
+
Policy = 8192,
|
|
2206
|
+
Resource = 16384,
|
|
2207
|
+
Trace = 32768,
|
|
2208
|
+
Transform = 65536,
|
|
2209
|
+
User = 131072,
|
|
2210
|
+
Wand = 262144,
|
|
2211
|
+
Detailed = 2147450879,
|
|
2212
|
+
All = 2147483647
|
|
2213
|
+
}
|
|
2214
|
+
export declare class LogEvent {
|
|
2215
|
+
constructor(eventType: LogEventTypes, message?: string);
|
|
2216
|
+
readonly eventType: LogEventTypes;
|
|
2217
|
+
readonly message: string;
|
|
2218
|
+
}
|
|
2219
|
+
export declare enum DngInterpolation {
|
|
2220
|
+
Disabled = -1,
|
|
2221
|
+
Linear = 0,
|
|
2222
|
+
Vng = 1,
|
|
2223
|
+
Ppg = 2,
|
|
2224
|
+
Ahd = 3,
|
|
2225
|
+
DCB = 4,
|
|
2226
|
+
Dht = 11,
|
|
2227
|
+
ModifiedAhd = 12
|
|
2228
|
+
}
|
|
2229
|
+
export declare enum DngOutputColor {
|
|
2230
|
+
Raw = 0,
|
|
2231
|
+
SRGB = 1,
|
|
2232
|
+
AdobeRGB = 2,
|
|
2233
|
+
WideGamutRGB = 3,
|
|
2234
|
+
KodakProPhotoRGB = 4,
|
|
2235
|
+
XYZ = 5,
|
|
2236
|
+
ACES = 6
|
|
2237
|
+
}
|
|
2238
|
+
export declare class DngReadDefines extends DefinesCreator {
|
|
2239
|
+
constructor();
|
|
2240
|
+
disableAutoBrightness?: boolean;
|
|
2241
|
+
interpolationQuality?: DngInterpolation;
|
|
2242
|
+
outputColor?: DngOutputColor;
|
|
2243
|
+
useAutoWhitebalance?: boolean;
|
|
2244
|
+
useCameraWhitebalance?: boolean;
|
|
2245
|
+
getDefines(): IDefine[];
|
|
2246
|
+
}
|
|
2071
2247
|
export declare class ImageMagick {
|
|
2072
2248
|
private readonly loader;
|
|
2073
2249
|
private api?;
|
|
2074
|
-
static read<TReturnType>(color: IMagickColor, width: number, height: number, func:
|
|
2075
|
-
static read<TReturnType>(color: IMagickColor, width: number, height: number, func:
|
|
2076
|
-
static read<TReturnType>(array: ByteArray, format: MagickFormat, func:
|
|
2077
|
-
static read<TReturnType>(array: ByteArray, format: MagickFormat, func:
|
|
2078
|
-
static read<TReturnType>(array: ByteArray, settings: MagickReadSettings, func:
|
|
2079
|
-
static read<TReturnType>(array: ByteArray, settings: MagickReadSettings, func:
|
|
2080
|
-
static read<TReturnType>(array: ByteArray, func:
|
|
2081
|
-
static read<TReturnType>(array: ByteArray, func:
|
|
2082
|
-
static read<TReturnType>(fileName: string, format: MagickFormat, func:
|
|
2083
|
-
static read<TReturnType>(fileName: string, format: MagickFormat, func:
|
|
2084
|
-
static read<TReturnType>(fileName: string, settings: MagickReadSettings, func:
|
|
2085
|
-
static read<TReturnType>(fileName: string, settings: MagickReadSettings, func:
|
|
2086
|
-
static read<TReturnType>(fileName: string, func:
|
|
2087
|
-
static read<TReturnType>(fileName: string, func:
|
|
2088
|
-
static readCollection<TReturnType>(array: ByteArray, format: MagickFormat, func:
|
|
2089
|
-
static readCollection<TReturnType>(array: ByteArray, format: MagickFormat, func:
|
|
2090
|
-
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func:
|
|
2091
|
-
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func:
|
|
2092
|
-
static readCollection<TReturnType>(array: ByteArray, func:
|
|
2093
|
-
static readCollection<TReturnType>(array: ByteArray, func:
|
|
2094
|
-
static readCollection<TReturnType>(fileName: string, settings: MagickReadSettings, func:
|
|
2095
|
-
static readCollection<TReturnType>(fileName: string, settings: MagickReadSettings, func:
|
|
2096
|
-
static readCollection<TReturnType>(fileName: string, func:
|
|
2097
|
-
static readCollection<TReturnType>(fileName: string, func:
|
|
2098
|
-
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func:
|
|
2099
|
-
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func:
|
|
2250
|
+
static read<TReturnType>(color: IMagickColor, width: number, height: number, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2251
|
+
static read<TReturnType>(color: IMagickColor, width: number, height: number, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2252
|
+
static read<TReturnType>(array: ByteArray, format: MagickFormat, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2253
|
+
static read<TReturnType>(array: ByteArray, format: MagickFormat, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2254
|
+
static read<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2255
|
+
static read<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2256
|
+
static read<TReturnType>(array: ByteArray, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2257
|
+
static read<TReturnType>(array: ByteArray, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2258
|
+
static read<TReturnType>(fileName: string, format: MagickFormat, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2259
|
+
static read<TReturnType>(fileName: string, format: MagickFormat, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2260
|
+
static read<TReturnType>(fileName: string, settings: MagickReadSettings, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2261
|
+
static read<TReturnType>(fileName: string, settings: MagickReadSettings, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2262
|
+
static read<TReturnType>(fileName: string, func: SyncImageCallback<TReturnType>): TReturnType;
|
|
2263
|
+
static read<TReturnType>(fileName: string, func: AsyncImageCallback<TReturnType>): Promise<TReturnType>;
|
|
2264
|
+
static readCollection<TReturnType>(array: ByteArray, format: MagickFormat, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2265
|
+
static readCollection<TReturnType>(array: ByteArray, format: MagickFormat, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2266
|
+
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2267
|
+
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2268
|
+
static readCollection<TReturnType>(array: ByteArray, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2269
|
+
static readCollection<TReturnType>(array: ByteArray, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2270
|
+
static readCollection<TReturnType>(fileName: string, settings: MagickReadSettings, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2271
|
+
static readCollection<TReturnType>(fileName: string, settings: MagickReadSettings, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2272
|
+
static readCollection<TReturnType>(fileName: string, func: SyncImageCollectionCallback<TReturnType>): TReturnType;
|
|
2273
|
+
static readCollection<TReturnType>(fileName: string, func: AsyncImageCollectionCallback<TReturnType>): Promise<TReturnType>;
|
|
2274
|
+
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: SyncImageCallback<TReturnType>, settings?: CanvasRenderingContext2DSettings): TReturnType;
|
|
2275
|
+
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: AsyncImageCallback<TReturnType>, settings?: CanvasRenderingContext2DSettings): Promise<TReturnType>;
|
|
2100
2276
|
private writeConfigurationFiles;
|
|
2101
2277
|
}
|
|
2102
2278
|
export declare function initializeImageMagick(wasmLocationDataOrAssembly: URL | ByteArray | WebAssembly.Module, configurationFiles?: IConfigurationFiles): Promise<void>;
|
|
@@ -2252,6 +2428,41 @@ export interface IMagickFormatInfo {
|
|
|
2252
2428
|
readonly supportsReading: boolean;
|
|
2253
2429
|
readonly supportsWriting: boolean;
|
|
2254
2430
|
}
|
|
2431
|
+
export interface IMagickImageInfo {
|
|
2432
|
+
readonly colorSpace: ColorSpace;
|
|
2433
|
+
readonly compression: CompressionMethod;
|
|
2434
|
+
readonly density: Density;
|
|
2435
|
+
readonly format: MagickFormat;
|
|
2436
|
+
readonly height: number;
|
|
2437
|
+
readonly interlace: Interlace;
|
|
2438
|
+
readonly orientation: OrientationType$1;
|
|
2439
|
+
readonly quality: number;
|
|
2440
|
+
readonly width: number;
|
|
2441
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2442
|
+
}
|
|
2443
|
+
export declare class MagickImageInfo implements IMagickImageInfo {
|
|
2444
|
+
private _colorSpace;
|
|
2445
|
+
private _compression;
|
|
2446
|
+
private _density;
|
|
2447
|
+
private _format;
|
|
2448
|
+
private _height;
|
|
2449
|
+
private _interlace;
|
|
2450
|
+
private _orientation;
|
|
2451
|
+
private _quality;
|
|
2452
|
+
private _width;
|
|
2453
|
+
get colorSpace(): ColorSpace;
|
|
2454
|
+
get compression(): CompressionMethod;
|
|
2455
|
+
get density(): Density;
|
|
2456
|
+
get format(): MagickFormat;
|
|
2457
|
+
get height(): number;
|
|
2458
|
+
get interlace(): Interlace;
|
|
2459
|
+
get orientation(): OrientationType$1;
|
|
2460
|
+
get quality(): number;
|
|
2461
|
+
get width(): number;
|
|
2462
|
+
constructor();
|
|
2463
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2464
|
+
static create(array: ByteArray, settings?: MagickReadSettings): IMagickImageInfo;
|
|
2465
|
+
}
|
|
2255
2466
|
export declare class Magick {
|
|
2256
2467
|
static get delegates(): string;
|
|
2257
2468
|
static get features(): string;
|