@imagemagick/magick-wasm 0.0.24 → 0.0.26
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 +42 -15
- package/README.md +1 -1
- package/dist/index.d.ts +1058 -802
- package/dist/index.mjs +7312 -6780
- package/dist/index.umd.js +4 -17
- package/dist/magick.wasm +0 -0
- package/package.json +16 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,251 +1,6 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator
|
|
1
|
+
// Generated by dts-bundle-generator v9.0.0
|
|
2
2
|
|
|
3
|
-
export declare enum AlphaOption {
|
|
4
|
-
Undefined = 0,
|
|
5
|
-
Activate = 1,
|
|
6
|
-
Associate = 2,
|
|
7
|
-
Background = 3,
|
|
8
|
-
Copy = 4,
|
|
9
|
-
Deactivate = 5,
|
|
10
|
-
Discrete = 6,
|
|
11
|
-
Disassociate = 7,
|
|
12
|
-
Extract = 8,
|
|
13
|
-
Off = 9,
|
|
14
|
-
On = 10,
|
|
15
|
-
Opaque = 11,
|
|
16
|
-
Remove = 12,
|
|
17
|
-
Set = 13,
|
|
18
|
-
Shape = 14,
|
|
19
|
-
Transparent = 15
|
|
20
|
-
}
|
|
21
|
-
export declare enum AutoThresholdMethod {
|
|
22
|
-
Undefined = 0,
|
|
23
|
-
Kapur = 1,
|
|
24
|
-
OTSU = 2,
|
|
25
|
-
Triangle = 3
|
|
26
|
-
}
|
|
27
3
|
export type ByteArray = Int8Array | Uint8Array | Uint8ClampedArray;
|
|
28
|
-
export declare enum PixelChannel {
|
|
29
|
-
Red = 0,
|
|
30
|
-
Cyan = 0,
|
|
31
|
-
Gray = 0,
|
|
32
|
-
Green = 1,
|
|
33
|
-
Magenta = 1,
|
|
34
|
-
Blue = 2,
|
|
35
|
-
Yellow = 2,
|
|
36
|
-
Black = 3,
|
|
37
|
-
Alpha = 4,
|
|
38
|
-
Index = 5,
|
|
39
|
-
Composite = 64
|
|
40
|
-
}
|
|
41
|
-
export interface IChannelStatistics {
|
|
42
|
-
channel: PixelChannel;
|
|
43
|
-
depth: number;
|
|
44
|
-
entropy: number;
|
|
45
|
-
kurtosis: number;
|
|
46
|
-
maximum: number;
|
|
47
|
-
mean: number;
|
|
48
|
-
minimum: number;
|
|
49
|
-
skewness: number;
|
|
50
|
-
standardDeviation: number;
|
|
51
|
-
}
|
|
52
|
-
export declare enum Channels {
|
|
53
|
-
Undefined = 0,
|
|
54
|
-
Red = 1,
|
|
55
|
-
Gray = 1,
|
|
56
|
-
Cyan = 1,
|
|
57
|
-
Green = 2,
|
|
58
|
-
Magenta = 2,
|
|
59
|
-
Blue = 4,
|
|
60
|
-
Yellow = 4,
|
|
61
|
-
Black = 8,
|
|
62
|
-
Alpha = 16,
|
|
63
|
-
Opacity = 16,
|
|
64
|
-
Index = 32,
|
|
65
|
-
Composite = 31,
|
|
66
|
-
All = 134217727,
|
|
67
|
-
TrueAlpha = 256,
|
|
68
|
-
RGB = 7,
|
|
69
|
-
CMYK = 15,
|
|
70
|
-
Grays = 1024,
|
|
71
|
-
Sync = 131072,
|
|
72
|
-
Default = 134217727
|
|
73
|
-
}
|
|
74
|
-
export declare class PrimaryInfo {
|
|
75
|
-
private _x;
|
|
76
|
-
private _y;
|
|
77
|
-
private _z;
|
|
78
|
-
constructor(x: number, y: number, z: number);
|
|
79
|
-
get x(): number;
|
|
80
|
-
get y(): number;
|
|
81
|
-
get z(): number;
|
|
82
|
-
}
|
|
83
|
-
export declare class ChromaticityInfo {
|
|
84
|
-
red: PrimaryInfo;
|
|
85
|
-
green: PrimaryInfo;
|
|
86
|
-
blue: PrimaryInfo;
|
|
87
|
-
white: PrimaryInfo;
|
|
88
|
-
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
89
|
-
}
|
|
90
|
-
export declare enum ClassType {
|
|
91
|
-
Undefined = 0,
|
|
92
|
-
Direct = 1,
|
|
93
|
-
Pseudo = 2
|
|
94
|
-
}
|
|
95
|
-
export declare enum ColorSpace {
|
|
96
|
-
Undefined = 0,
|
|
97
|
-
CMY = 1,
|
|
98
|
-
CMYK = 2,
|
|
99
|
-
Gray = 3,
|
|
100
|
-
HCL = 4,
|
|
101
|
-
HCLp = 5,
|
|
102
|
-
HSB = 6,
|
|
103
|
-
HSI = 7,
|
|
104
|
-
HSL = 8,
|
|
105
|
-
HSV = 9,
|
|
106
|
-
HWB = 10,
|
|
107
|
-
Lab = 11,
|
|
108
|
-
LCH = 12,
|
|
109
|
-
LCHab = 13,
|
|
110
|
-
LCHuv = 14,
|
|
111
|
-
Log = 15,
|
|
112
|
-
LMS = 16,
|
|
113
|
-
Luv = 17,
|
|
114
|
-
OHTA = 18,
|
|
115
|
-
Rec601YCbCr = 19,
|
|
116
|
-
Rec709YCbCr = 20,
|
|
117
|
-
RGB = 21,
|
|
118
|
-
scRGB = 22,
|
|
119
|
-
sRGB = 23,
|
|
120
|
-
Transparent = 24,
|
|
121
|
-
XyY = 25,
|
|
122
|
-
XYZ = 26,
|
|
123
|
-
YCbCr = 27,
|
|
124
|
-
YCC = 28,
|
|
125
|
-
YDbDr = 29,
|
|
126
|
-
YIQ = 30,
|
|
127
|
-
YPbPr = 31,
|
|
128
|
-
YUV = 32,
|
|
129
|
-
LinearGray = 33
|
|
130
|
-
}
|
|
131
|
-
export declare enum ColorType {
|
|
132
|
-
Undefined = 0,
|
|
133
|
-
Bilevel = 1,
|
|
134
|
-
Grayscale = 2,
|
|
135
|
-
GrayscaleAlpha = 3,
|
|
136
|
-
Palette = 4,
|
|
137
|
-
PaletteAlpha = 5,
|
|
138
|
-
TrueColor = 6,
|
|
139
|
-
TrueColorAlpha = 7,
|
|
140
|
-
ColorSeparation = 8,
|
|
141
|
-
ColorSeparationAlpha = 9,
|
|
142
|
-
Optimize = 10,
|
|
143
|
-
PaletteBilevelAlpha = 11
|
|
144
|
-
}
|
|
145
|
-
export declare enum CompositeOperator {
|
|
146
|
-
Undefined = 0,
|
|
147
|
-
Alpha = 1,
|
|
148
|
-
Atop = 2,
|
|
149
|
-
Blend = 3,
|
|
150
|
-
Blur = 4,
|
|
151
|
-
Bumpmap = 5,
|
|
152
|
-
ChangeMask = 6,
|
|
153
|
-
Clear = 7,
|
|
154
|
-
ColorBurn = 8,
|
|
155
|
-
ColorDodge = 9,
|
|
156
|
-
Colorize = 10,
|
|
157
|
-
CopyBlack = 11,
|
|
158
|
-
CopyBlue = 12,
|
|
159
|
-
Copy = 13,
|
|
160
|
-
CopyCyan = 14,
|
|
161
|
-
CopyGreen = 15,
|
|
162
|
-
CopyMagenta = 16,
|
|
163
|
-
CopyAlpha = 17,
|
|
164
|
-
CopyRed = 18,
|
|
165
|
-
CopyYellow = 19,
|
|
166
|
-
Darken = 20,
|
|
167
|
-
DarkenIntensity = 21,
|
|
168
|
-
Difference = 22,
|
|
169
|
-
Displace = 23,
|
|
170
|
-
Dissolve = 24,
|
|
171
|
-
Distort = 25,
|
|
172
|
-
DivideDst = 26,
|
|
173
|
-
DivideSrc = 27,
|
|
174
|
-
DstAtop = 28,
|
|
175
|
-
Dst = 29,
|
|
176
|
-
DstIn = 30,
|
|
177
|
-
DstOut = 31,
|
|
178
|
-
DstOver = 32,
|
|
179
|
-
Exclusion = 33,
|
|
180
|
-
HardLight = 34,
|
|
181
|
-
HardMix = 35,
|
|
182
|
-
Hue = 36,
|
|
183
|
-
In = 37,
|
|
184
|
-
Intensity = 38,
|
|
185
|
-
Lighten = 39,
|
|
186
|
-
LightenIntensity = 40,
|
|
187
|
-
LinearBurn = 41,
|
|
188
|
-
LinearDodge = 42,
|
|
189
|
-
LinearLight = 43,
|
|
190
|
-
Luminize = 44,
|
|
191
|
-
Mathematics = 45,
|
|
192
|
-
MinusDst = 46,
|
|
193
|
-
MinusSrc = 47,
|
|
194
|
-
Modulate = 48,
|
|
195
|
-
ModulusAdd = 49,
|
|
196
|
-
ModulusSubtract = 50,
|
|
197
|
-
Multiply = 51,
|
|
198
|
-
No = 52,
|
|
199
|
-
Out = 53,
|
|
200
|
-
Over = 54,
|
|
201
|
-
Overlay = 55,
|
|
202
|
-
PegtopLight = 56,
|
|
203
|
-
PinLight = 57,
|
|
204
|
-
Plus = 58,
|
|
205
|
-
Replace = 59,
|
|
206
|
-
Saturate = 60,
|
|
207
|
-
Screen = 61,
|
|
208
|
-
SoftLight = 62,
|
|
209
|
-
SrcAtop = 63,
|
|
210
|
-
Src = 64,
|
|
211
|
-
SrcIn = 65,
|
|
212
|
-
SrcOut = 66,
|
|
213
|
-
SrcOver = 67,
|
|
214
|
-
Threshold = 68,
|
|
215
|
-
VividLight = 69,
|
|
216
|
-
Xor = 70,
|
|
217
|
-
Stereo = 71
|
|
218
|
-
}
|
|
219
|
-
export declare enum CompressionMethod {
|
|
220
|
-
Undefined = 0,
|
|
221
|
-
B44A = 1,
|
|
222
|
-
B44 = 2,
|
|
223
|
-
BZip = 3,
|
|
224
|
-
DXT1 = 4,
|
|
225
|
-
DXT3 = 5,
|
|
226
|
-
DXT5 = 6,
|
|
227
|
-
Fax = 7,
|
|
228
|
-
Group4 = 8,
|
|
229
|
-
JBIG1 = 9,
|
|
230
|
-
JBIG2 = 10,
|
|
231
|
-
JPEG2000 = 11,
|
|
232
|
-
JPEG = 12,
|
|
233
|
-
LosslessJPEG = 13,
|
|
234
|
-
LZMA = 14,
|
|
235
|
-
LZW = 15,
|
|
236
|
-
NoCompression = 16,
|
|
237
|
-
Piz = 17,
|
|
238
|
-
Pxr24 = 18,
|
|
239
|
-
RLE = 19,
|
|
240
|
-
Zip = 20,
|
|
241
|
-
ZipS = 21,
|
|
242
|
-
Zstd = 22,
|
|
243
|
-
WebP = 23,
|
|
244
|
-
DWAA = 24,
|
|
245
|
-
DWAB = 25,
|
|
246
|
-
BC7 = 26,
|
|
247
|
-
BC5 = 27
|
|
248
|
-
}
|
|
249
4
|
export declare enum MagickFormat {
|
|
250
5
|
Unknown = "UNKNOWN",
|
|
251
6
|
ThreeFr = "3FR",
|
|
@@ -312,7 +67,7 @@ export declare enum MagickFormat {
|
|
|
312
67
|
Exr = "EXR",
|
|
313
68
|
Farbfeld = "FARBFELD",
|
|
314
69
|
Fax = "FAX",
|
|
315
|
-
|
|
70
|
+
Ff = "FF",
|
|
316
71
|
File = "FILE",
|
|
317
72
|
Fits = "FITS",
|
|
318
73
|
Fl32 = "FL32",
|
|
@@ -534,46 +289,12 @@ export declare abstract class DefinesCreator implements IDefines {
|
|
|
534
289
|
createDefine(name: string, value: boolean): MagickDefine;
|
|
535
290
|
createDefine(name: string, value: number): MagickDefine;
|
|
536
291
|
createDefine(name: string, value: string): MagickDefine;
|
|
537
|
-
|
|
538
|
-
export declare enum DensityUnit {
|
|
539
|
-
Undefined = 0,
|
|
540
|
-
PixelsPerInch = 1,
|
|
541
|
-
PixelsPerCentimeter = 2
|
|
542
|
-
}
|
|
543
|
-
export declare class Density {
|
|
544
|
-
constructor(xy: number);
|
|
545
|
-
constructor(xy: number, unit: DensityUnit);
|
|
546
|
-
constructor(x: number, y: number, units: DensityUnit);
|
|
547
|
-
readonly x: number;
|
|
548
|
-
readonly y: number;
|
|
549
|
-
readonly units: DensityUnit;
|
|
292
|
+
protected hasValue(value: unknown): boolean;
|
|
550
293
|
}
|
|
551
294
|
export interface IDisposable {
|
|
552
295
|
dispose(): void;
|
|
553
296
|
}
|
|
554
|
-
export declare enum
|
|
555
|
-
Undefined = 0,
|
|
556
|
-
Affine = 1,
|
|
557
|
-
AffineProjection = 2,
|
|
558
|
-
ScaleRotateTranslate = 3,
|
|
559
|
-
Perspective = 4,
|
|
560
|
-
PerspectiveProjection = 5,
|
|
561
|
-
BilinearForward = 6,
|
|
562
|
-
BilinearReverse = 7,
|
|
563
|
-
Polynomial = 8,
|
|
564
|
-
Arc = 9,
|
|
565
|
-
Polar = 10,
|
|
566
|
-
DePolar = 11,
|
|
567
|
-
Cylinder2Plane = 12,
|
|
568
|
-
Plane2Cylinder = 13,
|
|
569
|
-
Barrel = 14,
|
|
570
|
-
BarrelInverse = 15,
|
|
571
|
-
Shepards = 16,
|
|
572
|
-
Resize = 17,
|
|
573
|
-
Sentinel = 18,
|
|
574
|
-
RigidAffine = 19
|
|
575
|
-
}
|
|
576
|
-
export declare enum Gravity {
|
|
297
|
+
export declare enum Gravity {
|
|
577
298
|
Undefined = 0,
|
|
578
299
|
Forget = 0,
|
|
579
300
|
Northwest = 1,
|
|
@@ -586,28 +307,27 @@ export declare enum Gravity {
|
|
|
586
307
|
South = 8,
|
|
587
308
|
Southeast = 9
|
|
588
309
|
}
|
|
589
|
-
export
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
310
|
+
export interface IMagickColor {
|
|
311
|
+
r: number;
|
|
312
|
+
g: number;
|
|
313
|
+
b: number;
|
|
314
|
+
a: number;
|
|
315
|
+
k: number;
|
|
316
|
+
isCmyk: boolean;
|
|
317
|
+
toShortString(): string;
|
|
318
|
+
toString(): string;
|
|
319
|
+
}
|
|
320
|
+
export declare class MagickColor implements IMagickColor {
|
|
596
321
|
constructor(color?: string);
|
|
597
322
|
constructor(r: number, g: number, b: number);
|
|
598
323
|
constructor(r: number, g: number, b: number, a: number);
|
|
599
324
|
constructor(c: number, m: number, y: number, k: number, a: number);
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
get a(): number;
|
|
607
|
-
set a(value: number);
|
|
608
|
-
get k(): number;
|
|
609
|
-
set k(value: number);
|
|
610
|
-
get isCmyk(): boolean;
|
|
325
|
+
r: number;
|
|
326
|
+
g: number;
|
|
327
|
+
b: number;
|
|
328
|
+
a: number;
|
|
329
|
+
k: number;
|
|
330
|
+
isCmyk: boolean;
|
|
611
331
|
toShortString(): string;
|
|
612
332
|
toString(): string;
|
|
613
333
|
private initialize;
|
|
@@ -616,6 +336,7 @@ export declare class MagickColor {
|
|
|
616
336
|
export declare abstract class NativeInstance {
|
|
617
337
|
private readonly disposeMethod;
|
|
618
338
|
private instance;
|
|
339
|
+
protected onDispose?(): void;
|
|
619
340
|
dispose(): void;
|
|
620
341
|
private disposeInstance;
|
|
621
342
|
}
|
|
@@ -643,13 +364,17 @@ export declare enum TextDecoration {
|
|
|
643
364
|
export interface IDrawingWand extends IDisposable {
|
|
644
365
|
color(x: number, y: number, paintMethod: number): void;
|
|
645
366
|
draw(drawables: IDrawable[]): void;
|
|
646
|
-
fillColor(value:
|
|
367
|
+
fillColor(value: IMagickColor): void;
|
|
647
368
|
fillOpacity(value: number): void;
|
|
648
369
|
font(family: string): void;
|
|
649
370
|
fontPointSize(value: number): void;
|
|
650
371
|
gravity(value: Gravity): void;
|
|
372
|
+
line(startX: number, startY: number, endX: number, endY: number): void;
|
|
373
|
+
point(x: number, y: number): void;
|
|
651
374
|
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
|
|
652
375
|
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
|
|
376
|
+
strokeColor(value: IMagickColor): void;
|
|
377
|
+
strokeWidth(value: number): void;
|
|
653
378
|
text(x: number, y: number, value: string): void;
|
|
654
379
|
textAlignment(value: TextAlignment): void;
|
|
655
380
|
textAntialias(value: boolean): void;
|
|
@@ -657,19 +382,23 @@ export interface IDrawingWand extends IDisposable {
|
|
|
657
382
|
textInterlineSpacing(value: number): void;
|
|
658
383
|
textInterwordspacing(value: number): void;
|
|
659
384
|
textKerning(value: number): void;
|
|
660
|
-
textUnderColor(value:
|
|
385
|
+
textUnderColor(value: IMagickColor): void;
|
|
661
386
|
}
|
|
662
387
|
export declare class DrawingWand extends NativeInstance implements IDrawingWand {
|
|
663
388
|
private constructor();
|
|
664
389
|
color(x: number, y: number, paintMethod: PaintMethod): void;
|
|
665
390
|
draw(drawables: IDrawable[]): void;
|
|
666
|
-
fillColor(value:
|
|
391
|
+
fillColor(value: IMagickColor): void;
|
|
667
392
|
fillOpacity(value: number): void;
|
|
668
393
|
font(fileName: string): void;
|
|
669
394
|
fontPointSize(value: number): void;
|
|
670
395
|
gravity(value: Gravity): void;
|
|
396
|
+
line(startX: number, startY: number, endX: number, endY: number): void;
|
|
397
|
+
point(x: number, y: number): void;
|
|
671
398
|
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): void;
|
|
672
399
|
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): void;
|
|
400
|
+
strokeColor(value: IMagickColor): void;
|
|
401
|
+
strokeWidth(value: number): void;
|
|
673
402
|
text(x: number, y: number, value: string): void;
|
|
674
403
|
textAlignment(value: TextAlignment): void;
|
|
675
404
|
textAntialias(value: boolean): void;
|
|
@@ -677,7 +406,7 @@ export declare class DrawingWand extends NativeInstance implements IDrawingWand
|
|
|
677
406
|
textInterlineSpacing(value: number): void;
|
|
678
407
|
textInterwordspacing(value: number): void;
|
|
679
408
|
textKerning(value: number): void;
|
|
680
|
-
textUnderColor(value:
|
|
409
|
+
textUnderColor(value: IMagickColor): void;
|
|
681
410
|
}
|
|
682
411
|
export interface IDrawable {
|
|
683
412
|
draw(wand: IDrawingWand): void;
|
|
@@ -691,7 +420,7 @@ export declare class DrawableColor implements IDrawable {
|
|
|
691
420
|
}
|
|
692
421
|
export declare class DrawableFillColor implements IDrawable {
|
|
693
422
|
private readonly _color;
|
|
694
|
-
constructor(color:
|
|
423
|
+
constructor(color: IMagickColor);
|
|
695
424
|
draw(wand: IDrawingWand): void;
|
|
696
425
|
}
|
|
697
426
|
export declare class Percentage {
|
|
@@ -699,7 +428,6 @@ export declare class Percentage {
|
|
|
699
428
|
constructor(value: number);
|
|
700
429
|
multiply(value: number): number;
|
|
701
430
|
toDouble(): number;
|
|
702
|
-
toQuantum(): number;
|
|
703
431
|
}
|
|
704
432
|
export declare class DrawableFillOpacity implements IDrawable {
|
|
705
433
|
private readonly _opacity;
|
|
@@ -721,6 +449,20 @@ export declare class DrawableGravity implements IDrawable {
|
|
|
721
449
|
constructor(gravity: Gravity);
|
|
722
450
|
draw(wand: IDrawingWand): void;
|
|
723
451
|
}
|
|
452
|
+
export declare class DrawableLine implements IDrawable {
|
|
453
|
+
private readonly _startX;
|
|
454
|
+
private readonly _startY;
|
|
455
|
+
private readonly _endX;
|
|
456
|
+
private readonly _endY;
|
|
457
|
+
constructor(startX: number, startY: number, endX: number, endY: number);
|
|
458
|
+
draw(wand: IDrawingWand): void;
|
|
459
|
+
}
|
|
460
|
+
export declare class DrawablePoint implements IDrawable {
|
|
461
|
+
private readonly _x;
|
|
462
|
+
private readonly _y;
|
|
463
|
+
constructor(x: number, y: number);
|
|
464
|
+
draw(wand: IDrawingWand): void;
|
|
465
|
+
}
|
|
724
466
|
export declare class DrawableRectangle implements IDrawable {
|
|
725
467
|
private readonly _upperLeftX;
|
|
726
468
|
private readonly _upperLeftY;
|
|
@@ -739,6 +481,16 @@ export declare class DrawableRoundRectangle implements IDrawable {
|
|
|
739
481
|
constructor(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number);
|
|
740
482
|
draw(wand: IDrawingWand): void;
|
|
741
483
|
}
|
|
484
|
+
export declare class DrawableStrokeColor implements IDrawable {
|
|
485
|
+
private readonly _color;
|
|
486
|
+
constructor(color: IMagickColor);
|
|
487
|
+
draw(wand: IDrawingWand): void;
|
|
488
|
+
}
|
|
489
|
+
export declare class DrawableStrokeWidth implements IDrawable {
|
|
490
|
+
private readonly _width;
|
|
491
|
+
constructor(width: number);
|
|
492
|
+
draw(wand: IDrawingWand): void;
|
|
493
|
+
}
|
|
742
494
|
export declare class DrawableTextAlignment implements IDrawable {
|
|
743
495
|
private readonly _alignment;
|
|
744
496
|
constructor(alignment: TextAlignment);
|
|
@@ -773,7 +525,7 @@ export declare class DrawableTextKerning implements IDrawable {
|
|
|
773
525
|
}
|
|
774
526
|
export declare class DrawableTextUnderColor implements IDrawable {
|
|
775
527
|
private readonly _color;
|
|
776
|
-
constructor(color:
|
|
528
|
+
constructor(color: IMagickColor);
|
|
777
529
|
draw(wand: IDrawingWand): void;
|
|
778
530
|
}
|
|
779
531
|
export declare class DrawableText implements IDrawable {
|
|
@@ -783,6 +535,299 @@ export declare class DrawableText implements IDrawable {
|
|
|
783
535
|
constructor(x: number, y: number, value: string);
|
|
784
536
|
draw(wand: IDrawingWand): void;
|
|
785
537
|
}
|
|
538
|
+
export declare enum AlphaOption {
|
|
539
|
+
Undefined = 0,
|
|
540
|
+
Activate = 1,
|
|
541
|
+
Associate = 2,
|
|
542
|
+
Background = 3,
|
|
543
|
+
Copy = 4,
|
|
544
|
+
Deactivate = 5,
|
|
545
|
+
Discrete = 6,
|
|
546
|
+
Disassociate = 7,
|
|
547
|
+
Extract = 8,
|
|
548
|
+
Off = 9,
|
|
549
|
+
On = 10,
|
|
550
|
+
Opaque = 11,
|
|
551
|
+
Remove = 12,
|
|
552
|
+
Set = 13,
|
|
553
|
+
Shape = 14,
|
|
554
|
+
Transparent = 15
|
|
555
|
+
}
|
|
556
|
+
export declare enum AutoThresholdMethod {
|
|
557
|
+
Undefined = 0,
|
|
558
|
+
Kapur = 1,
|
|
559
|
+
OTSU = 2,
|
|
560
|
+
Triangle = 3
|
|
561
|
+
}
|
|
562
|
+
export declare enum Channels {
|
|
563
|
+
Undefined = 0,
|
|
564
|
+
Red = 1,
|
|
565
|
+
Gray = 1,
|
|
566
|
+
Cyan = 1,
|
|
567
|
+
Green = 2,
|
|
568
|
+
Magenta = 2,
|
|
569
|
+
Blue = 4,
|
|
570
|
+
Yellow = 4,
|
|
571
|
+
Black = 8,
|
|
572
|
+
Alpha = 16,
|
|
573
|
+
Opacity = 16,
|
|
574
|
+
Index = 32,
|
|
575
|
+
Composite = 31,
|
|
576
|
+
TrueAlpha = 256,
|
|
577
|
+
RGB = 7,
|
|
578
|
+
CMYK = 15,
|
|
579
|
+
CMYKA = 31,
|
|
580
|
+
Meta0 = 1024,
|
|
581
|
+
Meta1 = 2048,
|
|
582
|
+
Meta2 = 4096,
|
|
583
|
+
Meta3 = 8192,
|
|
584
|
+
Meta4 = 16384,
|
|
585
|
+
Meta5 = 32768,
|
|
586
|
+
Meta6 = 65536,
|
|
587
|
+
Meta7 = 131072,
|
|
588
|
+
Meta8 = 262144,
|
|
589
|
+
Meta9 = 524288,
|
|
590
|
+
Meta10 = 1048576,
|
|
591
|
+
Meta11 = 2097152,
|
|
592
|
+
Meta12 = 4194304,
|
|
593
|
+
Meta13 = 8388608,
|
|
594
|
+
Meta14 = 16777216,
|
|
595
|
+
Meta15 = 33554432,
|
|
596
|
+
Meta16 = 67108864,
|
|
597
|
+
Meta17 = 134217728,
|
|
598
|
+
Meta18 = 268435456,
|
|
599
|
+
Meta19 = 536870912,
|
|
600
|
+
Meta20 = 1073741824,
|
|
601
|
+
Meta21 = -2147483648,
|
|
602
|
+
Meta22 = 1,
|
|
603
|
+
Meta23 = 2,
|
|
604
|
+
Meta24 = 4,
|
|
605
|
+
Meta25 = 8,
|
|
606
|
+
Meta26 = 16,
|
|
607
|
+
Meta27 = 32,
|
|
608
|
+
Meta28 = 64,
|
|
609
|
+
Meta29 = 128,
|
|
610
|
+
Meta30 = 256,
|
|
611
|
+
Meta31 = 512,
|
|
612
|
+
Meta32 = 1024,
|
|
613
|
+
Meta33 = 2048,
|
|
614
|
+
Meta34 = 4096,
|
|
615
|
+
Meta35 = 8192,
|
|
616
|
+
Meta36 = 16384,
|
|
617
|
+
Meta37 = 32768,
|
|
618
|
+
Meta38 = 65536,
|
|
619
|
+
Meta39 = 131072,
|
|
620
|
+
Meta40 = 262144,
|
|
621
|
+
Meta41 = 524288,
|
|
622
|
+
Meta42 = 1048576,
|
|
623
|
+
Meta43 = 2097152,
|
|
624
|
+
Meta44 = 4194304,
|
|
625
|
+
Meta45 = 8388608,
|
|
626
|
+
Meta46 = 16777216,
|
|
627
|
+
Meta47 = 33554432,
|
|
628
|
+
Meta48 = 67108864,
|
|
629
|
+
Meta49 = 134217728,
|
|
630
|
+
Meta50 = 268435456,
|
|
631
|
+
Meta51 = 536870912,
|
|
632
|
+
Meta52 = 1073741824,
|
|
633
|
+
All = 134217727
|
|
634
|
+
}
|
|
635
|
+
export declare enum ClassType {
|
|
636
|
+
Undefined = 0,
|
|
637
|
+
Direct = 1,
|
|
638
|
+
Pseudo = 2
|
|
639
|
+
}
|
|
640
|
+
export declare enum ColorSpace {
|
|
641
|
+
Undefined = 0,
|
|
642
|
+
CMY = 1,
|
|
643
|
+
CMYK = 2,
|
|
644
|
+
Gray = 3,
|
|
645
|
+
HCL = 4,
|
|
646
|
+
HCLp = 5,
|
|
647
|
+
HSB = 6,
|
|
648
|
+
HSI = 7,
|
|
649
|
+
HSL = 8,
|
|
650
|
+
HSV = 9,
|
|
651
|
+
HWB = 10,
|
|
652
|
+
Lab = 11,
|
|
653
|
+
LCH = 12,
|
|
654
|
+
LCHab = 13,
|
|
655
|
+
LCHuv = 14,
|
|
656
|
+
Log = 15,
|
|
657
|
+
LMS = 16,
|
|
658
|
+
Luv = 17,
|
|
659
|
+
OHTA = 18,
|
|
660
|
+
Rec601YCbCr = 19,
|
|
661
|
+
Rec709YCbCr = 20,
|
|
662
|
+
RGB = 21,
|
|
663
|
+
scRGB = 22,
|
|
664
|
+
sRGB = 23,
|
|
665
|
+
Transparent = 24,
|
|
666
|
+
XyY = 25,
|
|
667
|
+
XYZ = 26,
|
|
668
|
+
YCbCr = 27,
|
|
669
|
+
YCC = 28,
|
|
670
|
+
YDbDr = 29,
|
|
671
|
+
YIQ = 30,
|
|
672
|
+
YPbPr = 31,
|
|
673
|
+
YUV = 32,
|
|
674
|
+
LinearGray = 33
|
|
675
|
+
}
|
|
676
|
+
export declare enum ColorType {
|
|
677
|
+
Undefined = 0,
|
|
678
|
+
Bilevel = 1,
|
|
679
|
+
Grayscale = 2,
|
|
680
|
+
GrayscaleAlpha = 3,
|
|
681
|
+
Palette = 4,
|
|
682
|
+
PaletteAlpha = 5,
|
|
683
|
+
TrueColor = 6,
|
|
684
|
+
TrueColorAlpha = 7,
|
|
685
|
+
ColorSeparation = 8,
|
|
686
|
+
ColorSeparationAlpha = 9,
|
|
687
|
+
Optimize = 10,
|
|
688
|
+
PaletteBilevelAlpha = 11
|
|
689
|
+
}
|
|
690
|
+
export declare enum CompositeOperator {
|
|
691
|
+
Undefined = 0,
|
|
692
|
+
Alpha = 1,
|
|
693
|
+
Atop = 2,
|
|
694
|
+
Blend = 3,
|
|
695
|
+
Blur = 4,
|
|
696
|
+
Bumpmap = 5,
|
|
697
|
+
ChangeMask = 6,
|
|
698
|
+
Clear = 7,
|
|
699
|
+
ColorBurn = 8,
|
|
700
|
+
ColorDodge = 9,
|
|
701
|
+
Colorize = 10,
|
|
702
|
+
CopyBlack = 11,
|
|
703
|
+
CopyBlue = 12,
|
|
704
|
+
Copy = 13,
|
|
705
|
+
CopyCyan = 14,
|
|
706
|
+
CopyGreen = 15,
|
|
707
|
+
CopyMagenta = 16,
|
|
708
|
+
CopyAlpha = 17,
|
|
709
|
+
CopyRed = 18,
|
|
710
|
+
CopyYellow = 19,
|
|
711
|
+
Darken = 20,
|
|
712
|
+
DarkenIntensity = 21,
|
|
713
|
+
Difference = 22,
|
|
714
|
+
Displace = 23,
|
|
715
|
+
Dissolve = 24,
|
|
716
|
+
Distort = 25,
|
|
717
|
+
DivideDst = 26,
|
|
718
|
+
DivideSrc = 27,
|
|
719
|
+
DstAtop = 28,
|
|
720
|
+
Dst = 29,
|
|
721
|
+
DstIn = 30,
|
|
722
|
+
DstOut = 31,
|
|
723
|
+
DstOver = 32,
|
|
724
|
+
Exclusion = 33,
|
|
725
|
+
HardLight = 34,
|
|
726
|
+
HardMix = 35,
|
|
727
|
+
Hue = 36,
|
|
728
|
+
In = 37,
|
|
729
|
+
Intensity = 38,
|
|
730
|
+
Lighten = 39,
|
|
731
|
+
LightenIntensity = 40,
|
|
732
|
+
LinearBurn = 41,
|
|
733
|
+
LinearDodge = 42,
|
|
734
|
+
LinearLight = 43,
|
|
735
|
+
Luminize = 44,
|
|
736
|
+
Mathematics = 45,
|
|
737
|
+
MinusDst = 46,
|
|
738
|
+
MinusSrc = 47,
|
|
739
|
+
Modulate = 48,
|
|
740
|
+
ModulusAdd = 49,
|
|
741
|
+
ModulusSubtract = 50,
|
|
742
|
+
Multiply = 51,
|
|
743
|
+
No = 52,
|
|
744
|
+
Out = 53,
|
|
745
|
+
Over = 54,
|
|
746
|
+
Overlay = 55,
|
|
747
|
+
PegtopLight = 56,
|
|
748
|
+
PinLight = 57,
|
|
749
|
+
Plus = 58,
|
|
750
|
+
Replace = 59,
|
|
751
|
+
Saturate = 60,
|
|
752
|
+
Screen = 61,
|
|
753
|
+
SoftLight = 62,
|
|
754
|
+
SrcAtop = 63,
|
|
755
|
+
Src = 64,
|
|
756
|
+
SrcIn = 65,
|
|
757
|
+
SrcOut = 66,
|
|
758
|
+
SrcOver = 67,
|
|
759
|
+
Threshold = 68,
|
|
760
|
+
VividLight = 69,
|
|
761
|
+
Xor = 70,
|
|
762
|
+
Stereo = 71,
|
|
763
|
+
Freeze = 72,
|
|
764
|
+
Interpolate = 73,
|
|
765
|
+
Negate = 74,
|
|
766
|
+
Reflect = 75,
|
|
767
|
+
SoftBurn = 76,
|
|
768
|
+
SoftDodge = 77,
|
|
769
|
+
Stamp = 78,
|
|
770
|
+
RMSE = 79,
|
|
771
|
+
SaliencyBlend = 80,
|
|
772
|
+
SeamlessBlend = 81
|
|
773
|
+
}
|
|
774
|
+
export declare enum CompressionMethod {
|
|
775
|
+
Undefined = 0,
|
|
776
|
+
B44A = 1,
|
|
777
|
+
B44 = 2,
|
|
778
|
+
BZip = 3,
|
|
779
|
+
DXT1 = 4,
|
|
780
|
+
DXT3 = 5,
|
|
781
|
+
DXT5 = 6,
|
|
782
|
+
Fax = 7,
|
|
783
|
+
Group4 = 8,
|
|
784
|
+
JBIG1 = 9,
|
|
785
|
+
JBIG2 = 10,
|
|
786
|
+
JPEG2000 = 11,
|
|
787
|
+
JPEG = 12,
|
|
788
|
+
LosslessJPEG = 13,
|
|
789
|
+
LZMA = 14,
|
|
790
|
+
LZW = 15,
|
|
791
|
+
NoCompression = 16,
|
|
792
|
+
Piz = 17,
|
|
793
|
+
Pxr24 = 18,
|
|
794
|
+
RLE = 19,
|
|
795
|
+
Zip = 20,
|
|
796
|
+
ZipS = 21,
|
|
797
|
+
Zstd = 22,
|
|
798
|
+
WebP = 23,
|
|
799
|
+
DWAA = 24,
|
|
800
|
+
DWAB = 25,
|
|
801
|
+
BC7 = 26,
|
|
802
|
+
BC5 = 27
|
|
803
|
+
}
|
|
804
|
+
export declare enum DensityUnit {
|
|
805
|
+
Undefined = 0,
|
|
806
|
+
PixelsPerInch = 1,
|
|
807
|
+
PixelsPerCentimeter = 2
|
|
808
|
+
}
|
|
809
|
+
export declare enum DistortMethod {
|
|
810
|
+
Undefined = 0,
|
|
811
|
+
Affine = 1,
|
|
812
|
+
AffineProjection = 2,
|
|
813
|
+
ScaleRotateTranslate = 3,
|
|
814
|
+
Perspective = 4,
|
|
815
|
+
PerspectiveProjection = 5,
|
|
816
|
+
BilinearForward = 6,
|
|
817
|
+
BilinearReverse = 7,
|
|
818
|
+
Polynomial = 8,
|
|
819
|
+
Arc = 9,
|
|
820
|
+
Polar = 10,
|
|
821
|
+
DePolar = 11,
|
|
822
|
+
Cylinder2Plane = 12,
|
|
823
|
+
Plane2Cylinder = 13,
|
|
824
|
+
Barrel = 14,
|
|
825
|
+
BarrelInverse = 15,
|
|
826
|
+
Shepards = 16,
|
|
827
|
+
Resize = 17,
|
|
828
|
+
Sentinel = 18,
|
|
829
|
+
RigidAffine = 19
|
|
830
|
+
}
|
|
786
831
|
export declare enum Endian {
|
|
787
832
|
Undefined = 0,
|
|
788
833
|
LSB = 1,
|
|
@@ -873,6 +918,316 @@ export declare enum FilterType {
|
|
|
873
918
|
LanczosRadius = 30,
|
|
874
919
|
CubicSpline = 31
|
|
875
920
|
}
|
|
921
|
+
export declare enum GifDisposeMethod {
|
|
922
|
+
Undefined = 0,
|
|
923
|
+
None = 1,
|
|
924
|
+
Background = 2,
|
|
925
|
+
Previous = 3
|
|
926
|
+
}
|
|
927
|
+
export declare enum Interlace {
|
|
928
|
+
Undefined = 0,
|
|
929
|
+
NoInterlace = 1,
|
|
930
|
+
Line = 2,
|
|
931
|
+
Plane = 3,
|
|
932
|
+
Partition = 4,
|
|
933
|
+
Gif = 5,
|
|
934
|
+
Jpeg = 6,
|
|
935
|
+
Png = 7
|
|
936
|
+
}
|
|
937
|
+
export declare enum Kernel {
|
|
938
|
+
Undefined = "Undefined",
|
|
939
|
+
Unity = "Unity",
|
|
940
|
+
Gaussian = "Gaussian",
|
|
941
|
+
DoG = "DoG",
|
|
942
|
+
LoG = "LoG",
|
|
943
|
+
Blur = "Blur",
|
|
944
|
+
Comet = "Comet",
|
|
945
|
+
Binomial = "Binomial",
|
|
946
|
+
Laplacian = "Laplacian",
|
|
947
|
+
Sobel = "Sobel",
|
|
948
|
+
FreiChen = "FreiChen",
|
|
949
|
+
Roberts = "Roberts",
|
|
950
|
+
Prewitt = "Prewitt",
|
|
951
|
+
Compass = "Compass",
|
|
952
|
+
Kirsch = "Kirsch",
|
|
953
|
+
Diamond = "Diamond",
|
|
954
|
+
Square = "Square",
|
|
955
|
+
Rectangle = "Rectangle",
|
|
956
|
+
Octagon = "Octagon",
|
|
957
|
+
Disk = "Disk",
|
|
958
|
+
Plus = "Plus",
|
|
959
|
+
Cross = "Cross",
|
|
960
|
+
Ring = "Ring",
|
|
961
|
+
Peaks = "Peaks",
|
|
962
|
+
Edges = "Edges",
|
|
963
|
+
Corners = "Corners",
|
|
964
|
+
Diagonals = "Diagonals",
|
|
965
|
+
LineEnds = "LineEnds",
|
|
966
|
+
LineJunctions = "LineJunctions",
|
|
967
|
+
Ridges = "Ridges",
|
|
968
|
+
ConvexHull = "ConvexHull",
|
|
969
|
+
ThinSE = "ThinSE",
|
|
970
|
+
Skeleton = "Skeleton",
|
|
971
|
+
Chebyshev = "Chebyshev",
|
|
972
|
+
Manhattan = "Manhattan",
|
|
973
|
+
Octagonal = "Octagonal",
|
|
974
|
+
Euclidean = "Euclidean",
|
|
975
|
+
UserDefined = "UserDefined"
|
|
976
|
+
}
|
|
977
|
+
export declare enum LogEventTypes {
|
|
978
|
+
None = 0,
|
|
979
|
+
Accelerate = 1,
|
|
980
|
+
Annotate = 2,
|
|
981
|
+
Blob = 4,
|
|
982
|
+
Cache = 8,
|
|
983
|
+
Coder = 16,
|
|
984
|
+
Configure = 32,
|
|
985
|
+
Deprecate = 64,
|
|
986
|
+
Draw = 128,
|
|
987
|
+
Exception = 256,
|
|
988
|
+
Image = 512,
|
|
989
|
+
Locale = 1024,
|
|
990
|
+
Module = 2048,
|
|
991
|
+
Pixel = 4096,
|
|
992
|
+
Policy = 8192,
|
|
993
|
+
Resource = 16384,
|
|
994
|
+
Trace = 32768,
|
|
995
|
+
Transform = 65536,
|
|
996
|
+
User = 131072,
|
|
997
|
+
Wand = 262144,
|
|
998
|
+
Detailed = 2147450879,
|
|
999
|
+
All = 2147483647
|
|
1000
|
+
}
|
|
1001
|
+
export declare enum MagickErrorSeverity {
|
|
1002
|
+
Warning = 300,
|
|
1003
|
+
ResourceLimitWarning = 300,
|
|
1004
|
+
TypeWarning = 305,
|
|
1005
|
+
OptionWarning = 310,
|
|
1006
|
+
DelegateWarning = 315,
|
|
1007
|
+
MissingDelegateWarning = 320,
|
|
1008
|
+
CorruptImageWarning = 325,
|
|
1009
|
+
FileOpenWarning = 330,
|
|
1010
|
+
BlobWarning = 335,
|
|
1011
|
+
StreamWarning = 340,
|
|
1012
|
+
CacheWarning = 345,
|
|
1013
|
+
CoderWarning = 350,
|
|
1014
|
+
FilterWarning = 352,
|
|
1015
|
+
ModuleWarning = 355,
|
|
1016
|
+
DrawWarning = 360,
|
|
1017
|
+
ImageWarning = 365,
|
|
1018
|
+
WandWarning = 370,
|
|
1019
|
+
RandomWarning = 375,
|
|
1020
|
+
XServerWarning = 380,
|
|
1021
|
+
MonitorWarning = 385,
|
|
1022
|
+
RegistryWarning = 390,
|
|
1023
|
+
ConfigureWarning = 395,
|
|
1024
|
+
PolicyWarning = 399,
|
|
1025
|
+
Error = 400,
|
|
1026
|
+
ResourceLimitError = 400,
|
|
1027
|
+
TypeError = 405,
|
|
1028
|
+
OptionError = 410,
|
|
1029
|
+
DelegateError = 415,
|
|
1030
|
+
MissingDelegateError = 420,
|
|
1031
|
+
CorruptImageError = 425,
|
|
1032
|
+
FileOpenError = 430,
|
|
1033
|
+
BlobError = 435,
|
|
1034
|
+
StreamError = 440,
|
|
1035
|
+
CacheError = 445,
|
|
1036
|
+
CoderError = 450,
|
|
1037
|
+
FilterError = 452,
|
|
1038
|
+
ModuleError = 455,
|
|
1039
|
+
DrawError = 460,
|
|
1040
|
+
ImageError = 465,
|
|
1041
|
+
WandError = 470,
|
|
1042
|
+
RandomError = 475,
|
|
1043
|
+
XServerError = 480,
|
|
1044
|
+
MonitorError = 485,
|
|
1045
|
+
RegistryError = 490,
|
|
1046
|
+
ConfigureError = 495,
|
|
1047
|
+
PolicyError = 499
|
|
1048
|
+
}
|
|
1049
|
+
export declare enum MorphologyMethod {
|
|
1050
|
+
Undefined = 0,
|
|
1051
|
+
Convolve = 1,
|
|
1052
|
+
Correlate = 2,
|
|
1053
|
+
Erode = 3,
|
|
1054
|
+
Dilate = 4,
|
|
1055
|
+
ErodeIntensity = 5,
|
|
1056
|
+
DilateIntensity = 6,
|
|
1057
|
+
IterativeDistance = 7,
|
|
1058
|
+
Open = 8,
|
|
1059
|
+
Close = 9,
|
|
1060
|
+
OpenIntensity = 10,
|
|
1061
|
+
CloseIntensity = 11,
|
|
1062
|
+
Smooth = 12,
|
|
1063
|
+
EdgeIn = 13,
|
|
1064
|
+
EdgeOut = 14,
|
|
1065
|
+
Edge = 15,
|
|
1066
|
+
TopHat = 16,
|
|
1067
|
+
BottomHat = 17,
|
|
1068
|
+
HitAndMiss = 18,
|
|
1069
|
+
Thinning = 19,
|
|
1070
|
+
Thicken = 20,
|
|
1071
|
+
Distance = 21,
|
|
1072
|
+
Voronoi = 22
|
|
1073
|
+
}
|
|
1074
|
+
export declare enum OrientationType {
|
|
1075
|
+
Undefined = 0,
|
|
1076
|
+
TopLeft = 1,
|
|
1077
|
+
TopRight = 2,
|
|
1078
|
+
BottomRight = 3,
|
|
1079
|
+
BottomLeft = 4,
|
|
1080
|
+
LeftTop = 5,
|
|
1081
|
+
RightTop = 6,
|
|
1082
|
+
RightBottom = 7,
|
|
1083
|
+
LeftBottom = 8
|
|
1084
|
+
}
|
|
1085
|
+
export declare enum PixelChannel {
|
|
1086
|
+
Red = 0,
|
|
1087
|
+
Cyan = 0,
|
|
1088
|
+
Gray = 0,
|
|
1089
|
+
Green = 1,
|
|
1090
|
+
Magenta = 1,
|
|
1091
|
+
Blue = 2,
|
|
1092
|
+
Yellow = 2,
|
|
1093
|
+
Black = 3,
|
|
1094
|
+
Alpha = 4,
|
|
1095
|
+
Index = 5,
|
|
1096
|
+
Meta0 = 10,
|
|
1097
|
+
Meta1 = 11,
|
|
1098
|
+
Meta2 = 12,
|
|
1099
|
+
Meta3 = 13,
|
|
1100
|
+
Meta4 = 14,
|
|
1101
|
+
Meta5 = 15,
|
|
1102
|
+
Meta6 = 16,
|
|
1103
|
+
Meta7 = 17,
|
|
1104
|
+
Meta8 = 18,
|
|
1105
|
+
Meta9 = 19,
|
|
1106
|
+
Meta10 = 20,
|
|
1107
|
+
Meta11 = 21,
|
|
1108
|
+
Meta12 = 22,
|
|
1109
|
+
Meta13 = 23,
|
|
1110
|
+
Meta14 = 24,
|
|
1111
|
+
Meta15 = 25,
|
|
1112
|
+
Meta16 = 26,
|
|
1113
|
+
Meta17 = 27,
|
|
1114
|
+
Meta18 = 28,
|
|
1115
|
+
Meta19 = 29,
|
|
1116
|
+
Meta20 = 30,
|
|
1117
|
+
Meta21 = 31,
|
|
1118
|
+
Meta22 = 32,
|
|
1119
|
+
Meta23 = 33,
|
|
1120
|
+
Meta24 = 34,
|
|
1121
|
+
Meta25 = 35,
|
|
1122
|
+
Meta26 = 36,
|
|
1123
|
+
Meta27 = 37,
|
|
1124
|
+
Meta28 = 38,
|
|
1125
|
+
Meta29 = 39,
|
|
1126
|
+
Meta30 = 40,
|
|
1127
|
+
Meta31 = 41,
|
|
1128
|
+
Meta32 = 42,
|
|
1129
|
+
Meta33 = 43,
|
|
1130
|
+
Meta34 = 44,
|
|
1131
|
+
Meta35 = 45,
|
|
1132
|
+
Meta36 = 46,
|
|
1133
|
+
Meta37 = 47,
|
|
1134
|
+
Meta38 = 48,
|
|
1135
|
+
Meta39 = 49,
|
|
1136
|
+
Meta40 = 50,
|
|
1137
|
+
Meta41 = 51,
|
|
1138
|
+
Meta42 = 52,
|
|
1139
|
+
Meta43 = 53,
|
|
1140
|
+
Meta44 = 54,
|
|
1141
|
+
Meta45 = 55,
|
|
1142
|
+
Meta46 = 56,
|
|
1143
|
+
Meta47 = 57,
|
|
1144
|
+
Meta48 = 58,
|
|
1145
|
+
Meta49 = 59,
|
|
1146
|
+
Meta50 = 60,
|
|
1147
|
+
Meta51 = 61,
|
|
1148
|
+
Meta52 = 62,
|
|
1149
|
+
Composite = 64
|
|
1150
|
+
}
|
|
1151
|
+
export declare enum PixelIntensityMethod {
|
|
1152
|
+
Undefined = 0,
|
|
1153
|
+
Average = 1,
|
|
1154
|
+
Brightness = 2,
|
|
1155
|
+
Lightness = 3,
|
|
1156
|
+
MS = 4,
|
|
1157
|
+
Rec601Luma = 5,
|
|
1158
|
+
Rec601Luminance = 6,
|
|
1159
|
+
Rec709Luma = 7,
|
|
1160
|
+
Rec709Luminance = 8,
|
|
1161
|
+
RMS = 9
|
|
1162
|
+
}
|
|
1163
|
+
export declare enum PixelInterpolateMethod {
|
|
1164
|
+
Undefined = 0,
|
|
1165
|
+
Average = 1,
|
|
1166
|
+
Average9 = 2,
|
|
1167
|
+
Average16 = 3,
|
|
1168
|
+
Background = 4,
|
|
1169
|
+
Bilinear = 5,
|
|
1170
|
+
Blend = 6,
|
|
1171
|
+
Catrom = 7,
|
|
1172
|
+
Integer = 8,
|
|
1173
|
+
Mesh = 9,
|
|
1174
|
+
Nearest = 10,
|
|
1175
|
+
Spline = 11
|
|
1176
|
+
}
|
|
1177
|
+
export declare enum RenderingIntent {
|
|
1178
|
+
Undefined = 0,
|
|
1179
|
+
Saturation = 1,
|
|
1180
|
+
Perceptual = 2,
|
|
1181
|
+
Absolute = 3,
|
|
1182
|
+
Relative = 4
|
|
1183
|
+
}
|
|
1184
|
+
export declare enum VirtualPixelMethod {
|
|
1185
|
+
Undefined = 0,
|
|
1186
|
+
Background = 1,
|
|
1187
|
+
Dither = 2,
|
|
1188
|
+
Edge = 3,
|
|
1189
|
+
Mirror = 4,
|
|
1190
|
+
Random = 5,
|
|
1191
|
+
Tile = 6,
|
|
1192
|
+
Transparent = 7,
|
|
1193
|
+
Mask = 8,
|
|
1194
|
+
Black = 9,
|
|
1195
|
+
Gray = 10,
|
|
1196
|
+
White = 11,
|
|
1197
|
+
HorizontalTile = 12,
|
|
1198
|
+
VerticalTile = 13,
|
|
1199
|
+
HorizontalTileEdge = 14,
|
|
1200
|
+
VerticalTileEdge = 15,
|
|
1201
|
+
CheckerTile = 16
|
|
1202
|
+
}
|
|
1203
|
+
export declare class LogEvent {
|
|
1204
|
+
constructor(eventType: LogEventTypes, message?: string);
|
|
1205
|
+
readonly eventType: LogEventTypes;
|
|
1206
|
+
readonly message: string;
|
|
1207
|
+
}
|
|
1208
|
+
export declare class ProgressEvent {
|
|
1209
|
+
readonly origin: string | null;
|
|
1210
|
+
readonly progress: Percentage;
|
|
1211
|
+
cancel: boolean;
|
|
1212
|
+
}
|
|
1213
|
+
export declare class MagickError extends Error {
|
|
1214
|
+
private _relatedErrors;
|
|
1215
|
+
readonly severity: MagickErrorSeverity;
|
|
1216
|
+
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1217
|
+
}
|
|
1218
|
+
export declare class WarningEvent {
|
|
1219
|
+
readonly error: MagickError;
|
|
1220
|
+
}
|
|
1221
|
+
export declare enum DngInterpolation {
|
|
1222
|
+
Disabled = -1,
|
|
1223
|
+
Linear = 0,
|
|
1224
|
+
Vng = 1,
|
|
1225
|
+
Ppg = 2,
|
|
1226
|
+
Ahd = 3,
|
|
1227
|
+
DCB = 4,
|
|
1228
|
+
Dht = 11,
|
|
1229
|
+
ModifiedAhd = 12
|
|
1230
|
+
}
|
|
876
1231
|
export declare enum DngOutputColor {
|
|
877
1232
|
Raw = 0,
|
|
878
1233
|
SRGB = 1,
|
|
@@ -885,19 +1240,39 @@ export declare enum DngOutputColor {
|
|
|
885
1240
|
export declare class DngReadDefines extends DefinesCreator {
|
|
886
1241
|
constructor();
|
|
887
1242
|
disableAutoBrightness?: boolean;
|
|
1243
|
+
interpolationQuality?: DngInterpolation;
|
|
888
1244
|
outputColor?: DngOutputColor;
|
|
889
1245
|
useAutoWhitebalance?: boolean;
|
|
890
1246
|
useCameraWhitebalance?: boolean;
|
|
891
1247
|
getDefines(): IDefine[];
|
|
892
|
-
private hasValue;
|
|
893
1248
|
}
|
|
894
|
-
export declare
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1249
|
+
export declare class PrimaryInfo {
|
|
1250
|
+
constructor(x: number, y: number, z: number);
|
|
1251
|
+
readonly x: number;
|
|
1252
|
+
readonly y: number;
|
|
1253
|
+
readonly z: number;
|
|
899
1254
|
}
|
|
900
|
-
export declare class
|
|
1255
|
+
export declare class ChromaticityInfo {
|
|
1256
|
+
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
1257
|
+
readonly red: PrimaryInfo;
|
|
1258
|
+
readonly green: PrimaryInfo;
|
|
1259
|
+
readonly blue: PrimaryInfo;
|
|
1260
|
+
readonly white: PrimaryInfo;
|
|
1261
|
+
}
|
|
1262
|
+
export interface IMagickGeometry {
|
|
1263
|
+
readonly aspectRatio: boolean;
|
|
1264
|
+
fillArea: boolean;
|
|
1265
|
+
greater: boolean;
|
|
1266
|
+
height: number;
|
|
1267
|
+
ignoreAspectRatio: boolean;
|
|
1268
|
+
isPercentage: boolean;
|
|
1269
|
+
less: boolean;
|
|
1270
|
+
limitPixels: boolean;
|
|
1271
|
+
width: number;
|
|
1272
|
+
x: number;
|
|
1273
|
+
y: number;
|
|
1274
|
+
}
|
|
1275
|
+
export declare class MagickGeometry implements IMagickGeometry {
|
|
901
1276
|
private _width;
|
|
902
1277
|
private _height;
|
|
903
1278
|
private _x;
|
|
@@ -918,6 +1293,8 @@ export declare class MagickGeometry {
|
|
|
918
1293
|
set fillArea(value: boolean);
|
|
919
1294
|
get greater(): boolean;
|
|
920
1295
|
set greater(value: boolean);
|
|
1296
|
+
get height(): number;
|
|
1297
|
+
set height(value: number);
|
|
921
1298
|
get ignoreAspectRatio(): boolean;
|
|
922
1299
|
set ignoreAspectRatio(value: boolean);
|
|
923
1300
|
get isPercentage(): boolean;
|
|
@@ -926,8 +1303,6 @@ export declare class MagickGeometry {
|
|
|
926
1303
|
set less(value: boolean);
|
|
927
1304
|
get limitPixels(): boolean;
|
|
928
1305
|
set limitPixels(value: boolean);
|
|
929
|
-
get height(): number;
|
|
930
|
-
set height(value: number);
|
|
931
1306
|
get width(): number;
|
|
932
1307
|
set width(value: number);
|
|
933
1308
|
get x(): number;
|
|
@@ -935,52 +1310,89 @@ export declare class MagickGeometry {
|
|
|
935
1310
|
get y(): number;
|
|
936
1311
|
set y(value: number);
|
|
937
1312
|
toString(): string;
|
|
938
|
-
private initialize;
|
|
939
|
-
private initializeFromAspectRation;
|
|
940
|
-
private parseNumber;
|
|
941
|
-
private isNumber;
|
|
942
|
-
private hasFlag;
|
|
1313
|
+
private initialize;
|
|
1314
|
+
private initializeFromAspectRation;
|
|
1315
|
+
private parseNumber;
|
|
1316
|
+
private isNumber;
|
|
1317
|
+
private hasFlag;
|
|
1318
|
+
}
|
|
1319
|
+
export declare class Point {
|
|
1320
|
+
constructor(xy: number);
|
|
1321
|
+
constructor(x: number, y: number);
|
|
1322
|
+
readonly x: number;
|
|
1323
|
+
readonly y: number;
|
|
1324
|
+
}
|
|
1325
|
+
export declare class ConnectedComponent {
|
|
1326
|
+
private constructor();
|
|
1327
|
+
readonly area: number;
|
|
1328
|
+
readonly centroid: Point;
|
|
1329
|
+
readonly color?: IMagickColor;
|
|
1330
|
+
readonly height: number;
|
|
1331
|
+
readonly id: number;
|
|
1332
|
+
readonly width: number;
|
|
1333
|
+
readonly x: number;
|
|
1334
|
+
readonly y: number;
|
|
1335
|
+
toGeometry(): IMagickGeometry;
|
|
1336
|
+
}
|
|
1337
|
+
export declare class Threshold {
|
|
1338
|
+
constructor(minimum: number, maximum?: number);
|
|
1339
|
+
readonly minimum: number;
|
|
1340
|
+
readonly maximum: number;
|
|
1341
|
+
toString(): string;
|
|
1342
|
+
}
|
|
1343
|
+
export type Connectivity = 4 | 8;
|
|
1344
|
+
export declare class ConnectedComponentsSettings {
|
|
1345
|
+
angleThreshold?: Threshold;
|
|
1346
|
+
areaThreshold?: Threshold;
|
|
1347
|
+
circularityThreshold?: Threshold;
|
|
1348
|
+
connectivity: Connectivity;
|
|
1349
|
+
diameterThreshold?: Threshold;
|
|
1350
|
+
eccentricityThreshold?: Threshold;
|
|
1351
|
+
majorAxisThreshold?: Threshold;
|
|
1352
|
+
meanColor?: boolean;
|
|
1353
|
+
minorAxisThreshold?: Threshold;
|
|
1354
|
+
perimeterThreshold?: Threshold;
|
|
1355
|
+
constructor(connectivity: Connectivity);
|
|
1356
|
+
}
|
|
1357
|
+
export declare class Density {
|
|
1358
|
+
constructor(xy: number);
|
|
1359
|
+
constructor(xy: number, unit: DensityUnit);
|
|
1360
|
+
constructor(x: number, y: number, units: DensityUnit);
|
|
1361
|
+
readonly x: number;
|
|
1362
|
+
readonly y: number;
|
|
1363
|
+
readonly units: DensityUnit;
|
|
943
1364
|
}
|
|
944
1365
|
export declare class DistortSettings {
|
|
1366
|
+
constructor(method: DistortMethod);
|
|
1367
|
+
readonly method: DistortMethod;
|
|
945
1368
|
bestFit: boolean;
|
|
946
1369
|
scale?: number;
|
|
947
|
-
viewport?:
|
|
1370
|
+
viewport?: IMagickGeometry;
|
|
948
1371
|
}
|
|
949
1372
|
export interface IImageProfile {
|
|
950
1373
|
readonly name: string;
|
|
951
|
-
|
|
1374
|
+
readonly data: Uint8Array;
|
|
952
1375
|
}
|
|
953
1376
|
export declare class ImageProfile implements IImageProfile {
|
|
954
|
-
private _data;
|
|
955
1377
|
constructor(name: string, data: Uint8Array);
|
|
956
1378
|
readonly name: string;
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
export declare enum Interlace {
|
|
960
|
-
Undefined = 0,
|
|
961
|
-
NoInterlace = 1,
|
|
962
|
-
Line = 2,
|
|
963
|
-
Plane = 3,
|
|
964
|
-
Partition = 4,
|
|
965
|
-
Gif = 5,
|
|
966
|
-
Jpeg = 6,
|
|
967
|
-
Png = 7
|
|
1379
|
+
readonly data: Uint8Array;
|
|
968
1380
|
}
|
|
969
1381
|
export declare class MagickSettings {
|
|
970
1382
|
antiAlias?: boolean;
|
|
971
|
-
backgroundColor?:
|
|
1383
|
+
backgroundColor?: IMagickColor;
|
|
972
1384
|
colorSpace?: ColorSpace;
|
|
973
1385
|
colorType?: ColorType;
|
|
974
1386
|
compression?: CompressionMethod;
|
|
975
1387
|
debug?: boolean;
|
|
976
1388
|
depth?: number;
|
|
977
1389
|
endian?: Endian;
|
|
978
|
-
fillColor?:
|
|
1390
|
+
fillColor?: IMagickColor;
|
|
979
1391
|
font?: string;
|
|
980
1392
|
fontPointsize?: number;
|
|
981
1393
|
format?: MagickFormat;
|
|
982
1394
|
interlace?: Interlace;
|
|
983
|
-
strokeColor?:
|
|
1395
|
+
strokeColor?: IMagickColor;
|
|
984
1396
|
strokeWidth?: number;
|
|
985
1397
|
textInterlineSpacing?: number;
|
|
986
1398
|
textKerning?: number;
|
|
@@ -1000,22 +1412,22 @@ export declare class MagickReadSettings extends MagickSettings {
|
|
|
1000
1412
|
private getSize;
|
|
1001
1413
|
}
|
|
1002
1414
|
export declare class MontageSettings {
|
|
1003
|
-
backgroundColor?:
|
|
1004
|
-
borderColor?:
|
|
1415
|
+
backgroundColor?: IMagickColor;
|
|
1416
|
+
borderColor?: IMagickColor;
|
|
1005
1417
|
borderWidth?: number;
|
|
1006
|
-
fillColor?:
|
|
1418
|
+
fillColor?: IMagickColor;
|
|
1007
1419
|
font?: string;
|
|
1008
1420
|
fontPointsize?: number;
|
|
1009
|
-
frameGeometry?:
|
|
1010
|
-
geometry?:
|
|
1421
|
+
frameGeometry?: IMagickGeometry;
|
|
1422
|
+
geometry?: IMagickGeometry;
|
|
1011
1423
|
gravity?: Gravity;
|
|
1012
1424
|
label?: string;
|
|
1013
1425
|
shadow?: boolean;
|
|
1014
|
-
strokeColor?:
|
|
1426
|
+
strokeColor?: IMagickColor;
|
|
1015
1427
|
textureFileName?: string;
|
|
1016
|
-
tileGeometry?:
|
|
1428
|
+
tileGeometry?: IMagickGeometry;
|
|
1017
1429
|
title?: string;
|
|
1018
|
-
transparentColor?:
|
|
1430
|
+
transparentColor?: IMagickColor;
|
|
1019
1431
|
}
|
|
1020
1432
|
export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable {
|
|
1021
1433
|
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
@@ -1037,12 +1449,14 @@ export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable
|
|
|
1037
1449
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1038
1450
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1039
1451
|
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1040
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1041
1452
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1453
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1042
1454
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1043
1455
|
}
|
|
1044
1456
|
export declare class MagickImageCollection extends Array<MagickImage> implements IMagickImageCollection {
|
|
1045
1457
|
private constructor();
|
|
1458
|
+
static create(): IMagickImageCollection;
|
|
1459
|
+
static create(array: ByteArray): IMagickImageCollection;
|
|
1046
1460
|
dispose(): void;
|
|
1047
1461
|
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1048
1462
|
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
@@ -1066,8 +1480,6 @@ export declare class MagickImageCollection extends Array<MagickImage> implements
|
|
|
1066
1480
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1067
1481
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1068
1482
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1069
|
-
static create(): IMagickImageCollection;
|
|
1070
|
-
static create(array: ByteArray): IMagickImageCollection;
|
|
1071
1483
|
private addImages;
|
|
1072
1484
|
private attachImages;
|
|
1073
1485
|
private static createObject;
|
|
@@ -1079,90 +1491,14 @@ export declare class MagickImageCollection extends Array<MagickImage> implements
|
|
|
1079
1491
|
private throwIfEmpty;
|
|
1080
1492
|
private checkResult;
|
|
1081
1493
|
}
|
|
1082
|
-
export declare enum Kernel {
|
|
1083
|
-
Undefined = "Undefined",
|
|
1084
|
-
Unity = "Unity",
|
|
1085
|
-
Gaussian = "Gaussian",
|
|
1086
|
-
DoG = "DoG",
|
|
1087
|
-
LoG = "LoG",
|
|
1088
|
-
Blur = "Blur",
|
|
1089
|
-
Comet = "Comet",
|
|
1090
|
-
Binomial = "Binomial",
|
|
1091
|
-
Laplacian = "Laplacian",
|
|
1092
|
-
Sobel = "Sobel",
|
|
1093
|
-
FreiChen = "FreiChen",
|
|
1094
|
-
Roberts = "Roberts",
|
|
1095
|
-
Prewitt = "Prewitt",
|
|
1096
|
-
Compass = "Compass",
|
|
1097
|
-
Kirsch = "Kirsch",
|
|
1098
|
-
Diamond = "Diamond",
|
|
1099
|
-
Square = "Square",
|
|
1100
|
-
Rectangle = "Rectangle",
|
|
1101
|
-
Octagon = "Octagon",
|
|
1102
|
-
Disk = "Disk",
|
|
1103
|
-
Plus = "Plus",
|
|
1104
|
-
Cross = "Cross",
|
|
1105
|
-
Ring = "Ring",
|
|
1106
|
-
Peaks = "Peaks",
|
|
1107
|
-
Edges = "Edges",
|
|
1108
|
-
Corners = "Corners",
|
|
1109
|
-
Diagonals = "Diagonals",
|
|
1110
|
-
LineEnds = "LineEnds",
|
|
1111
|
-
LineJunctions = "LineJunctions",
|
|
1112
|
-
Ridges = "Ridges",
|
|
1113
|
-
ConvexHull = "ConvexHull",
|
|
1114
|
-
ThinSE = "ThinSE",
|
|
1115
|
-
Skeleton = "Skeleton",
|
|
1116
|
-
Chebyshev = "Chebyshev",
|
|
1117
|
-
Manhattan = "Manhattan",
|
|
1118
|
-
Octagonal = "Octagonal",
|
|
1119
|
-
Euclidean = "Euclidean",
|
|
1120
|
-
UserDefined = "UserDefined"
|
|
1121
|
-
}
|
|
1122
|
-
export declare enum MorphologyMethod {
|
|
1123
|
-
Undefined = 0,
|
|
1124
|
-
Convolve = 1,
|
|
1125
|
-
Correlate = 2,
|
|
1126
|
-
Erode = 3,
|
|
1127
|
-
Dilate = 4,
|
|
1128
|
-
ErodeIntensity = 5,
|
|
1129
|
-
DilateIntensity = 6,
|
|
1130
|
-
IterativeDistance = 7,
|
|
1131
|
-
Open = 8,
|
|
1132
|
-
Close = 9,
|
|
1133
|
-
OpenIntensity = 10,
|
|
1134
|
-
CloseIntensity = 11,
|
|
1135
|
-
Smooth = 12,
|
|
1136
|
-
EdgeIn = 13,
|
|
1137
|
-
EdgeOut = 14,
|
|
1138
|
-
Edge = 15,
|
|
1139
|
-
TopHat = 16,
|
|
1140
|
-
BottomHat = 17,
|
|
1141
|
-
HitAndMiss = 18,
|
|
1142
|
-
Thinning = 19,
|
|
1143
|
-
Thicken = 20,
|
|
1144
|
-
Distance = 21,
|
|
1145
|
-
Voronoi = 22
|
|
1146
|
-
}
|
|
1147
1494
|
export declare class MorphologySettings {
|
|
1495
|
+
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
1148
1496
|
channels: Channels;
|
|
1149
1497
|
convolveBias: Percentage | undefined;
|
|
1150
|
-
convolveScale:
|
|
1498
|
+
convolveScale: IMagickGeometry | undefined;
|
|
1151
1499
|
iterations: number;
|
|
1152
|
-
readonly method: MorphologyMethod;
|
|
1153
1500
|
readonly kernel: string;
|
|
1154
|
-
|
|
1155
|
-
}
|
|
1156
|
-
export declare enum OrientationType {
|
|
1157
|
-
Undefined = 0,
|
|
1158
|
-
TopLeft = 1,
|
|
1159
|
-
TopRight = 2,
|
|
1160
|
-
BottomRight = 3,
|
|
1161
|
-
BottomLeft = 4,
|
|
1162
|
-
LeftTop = 5,
|
|
1163
|
-
RightTop = 6,
|
|
1164
|
-
RightBottom = 7,
|
|
1165
|
-
LeftBotom = 8
|
|
1501
|
+
readonly method: MorphologyMethod;
|
|
1166
1502
|
}
|
|
1167
1503
|
export type quantumArray = Uint8Array;
|
|
1168
1504
|
export interface IPixelCollection extends IDisposable {
|
|
@@ -1172,7 +1508,7 @@ export interface IPixelCollection extends IDisposable {
|
|
|
1172
1508
|
setArea(x: number, y: number, width: number, height: number, numberPixels: number[]): void;
|
|
1173
1509
|
setPixel(x: number, y: number, quantumPixels: quantumArray): void;
|
|
1174
1510
|
setPixel(x: number, y: number, numberPixels: number[]): void;
|
|
1175
|
-
toByteArray(x: number, y: number, width: number, height: number, mapping: string):
|
|
1511
|
+
toByteArray(x: number, y: number, width: number, height: number, mapping: string): Uint8Array | null;
|
|
1176
1512
|
}
|
|
1177
1513
|
export declare class PixelCollection extends NativeInstance implements IPixelCollection {
|
|
1178
1514
|
private readonly image;
|
|
@@ -1183,82 +1519,37 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
|
|
|
1183
1519
|
setArea(x: number, y: number, width: number, height: number, numberPixels: number[]): void;
|
|
1184
1520
|
setPixel(x: number, y: number, quantumPixels: quantumArray): void;
|
|
1185
1521
|
setPixel(x: number, y: number, numberPixels: number[]): void;
|
|
1186
|
-
toByteArray(x: number, y: number, width: number, height: number, mapping: string):
|
|
1187
|
-
private static createArray;
|
|
1522
|
+
toByteArray(x: number, y: number, width: number, height: number, mapping: string): Uint8Array | null;
|
|
1188
1523
|
private use;
|
|
1189
1524
|
}
|
|
1190
|
-
export
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
RMS = 9
|
|
1201
|
-
}
|
|
1202
|
-
export declare enum PixelInterpolateMethod {
|
|
1203
|
-
Undefined = 0,
|
|
1204
|
-
Average = 1,
|
|
1205
|
-
Average9 = 2,
|
|
1206
|
-
Average16 = 3,
|
|
1207
|
-
Background = 4,
|
|
1208
|
-
Bilinear = 5,
|
|
1209
|
-
Blend = 6,
|
|
1210
|
-
Catrom = 7,
|
|
1211
|
-
Integer = 8,
|
|
1212
|
-
Mesh = 9,
|
|
1213
|
-
Nearest = 10,
|
|
1214
|
-
Spline = 11
|
|
1215
|
-
}
|
|
1216
|
-
export declare class Point {
|
|
1217
|
-
private _x;
|
|
1218
|
-
private _y;
|
|
1219
|
-
constructor(xy: number);
|
|
1220
|
-
constructor(x: number, y: number);
|
|
1221
|
-
get x(): number;
|
|
1222
|
-
set x(value: number);
|
|
1223
|
-
get y(): number;
|
|
1224
|
-
set y(value: number);
|
|
1525
|
+
export interface IChannelStatistics {
|
|
1526
|
+
readonly channel: PixelChannel;
|
|
1527
|
+
readonly depth: number;
|
|
1528
|
+
readonly entropy: number;
|
|
1529
|
+
readonly kurtosis: number;
|
|
1530
|
+
readonly maximum: number;
|
|
1531
|
+
readonly mean: number;
|
|
1532
|
+
readonly minimum: number;
|
|
1533
|
+
readonly skewness: number;
|
|
1534
|
+
readonly standardDeviation: number;
|
|
1225
1535
|
}
|
|
1226
1536
|
export interface IStatistics {
|
|
1227
1537
|
readonly channels: ReadonlyArray<PixelChannel>;
|
|
1228
1538
|
composite(): IChannelStatistics;
|
|
1229
1539
|
getChannel(channel: PixelChannel): IChannelStatistics | null;
|
|
1230
1540
|
}
|
|
1231
|
-
export declare enum VirtualPixelMethod {
|
|
1232
|
-
Undefined = 0,
|
|
1233
|
-
Background = 1,
|
|
1234
|
-
Dither = 2,
|
|
1235
|
-
Edge = 3,
|
|
1236
|
-
Mirror = 4,
|
|
1237
|
-
Random = 5,
|
|
1238
|
-
Tile = 6,
|
|
1239
|
-
Transparent = 7,
|
|
1240
|
-
Mask = 8,
|
|
1241
|
-
Black = 9,
|
|
1242
|
-
Gray = 10,
|
|
1243
|
-
White = 11,
|
|
1244
|
-
HorizontalTile = 12,
|
|
1245
|
-
VerticalTile = 13,
|
|
1246
|
-
HorizontalTileEdge = 14,
|
|
1247
|
-
VerticalTileEdge = 15,
|
|
1248
|
-
CheckerTile = 16
|
|
1249
|
-
}
|
|
1250
1541
|
export interface IMagickImage extends IDisposable {
|
|
1251
1542
|
animationDelay: number;
|
|
1252
1543
|
animationIterations: number;
|
|
1253
1544
|
animationTicksPerSecond: number;
|
|
1254
1545
|
readonly artifactNames: ReadonlyArray<string>;
|
|
1255
1546
|
readonly attributeNames: ReadonlyArray<string>;
|
|
1256
|
-
backgroundColor:
|
|
1547
|
+
backgroundColor: IMagickColor;
|
|
1257
1548
|
readonly baseHeight: number;
|
|
1258
1549
|
readonly baseWidth: number;
|
|
1259
1550
|
blackPointCompensation: boolean;
|
|
1260
|
-
borderColor:
|
|
1261
|
-
boundingBox:
|
|
1551
|
+
borderColor: IMagickColor;
|
|
1552
|
+
boundingBox: IMagickGeometry | null;
|
|
1262
1553
|
readonly channelCount: number;
|
|
1263
1554
|
readonly channels: ReadonlyArray<PixelChannel>;
|
|
1264
1555
|
chromaticity: ChromaticityInfo;
|
|
@@ -1280,14 +1571,20 @@ export interface IMagickImage extends IDisposable {
|
|
|
1280
1571
|
gifDisposeMethod: GifDisposeMethod;
|
|
1281
1572
|
hasAlpha: boolean;
|
|
1282
1573
|
readonly height: number;
|
|
1283
|
-
interpolate: PixelInterpolateMethod;
|
|
1284
1574
|
readonly interlace: Interlace;
|
|
1575
|
+
interpolate: PixelInterpolateMethod;
|
|
1576
|
+
readonly isOpaque: boolean;
|
|
1285
1577
|
label: string | null;
|
|
1578
|
+
matteColor: IMagickColor;
|
|
1286
1579
|
orientation: OrientationType;
|
|
1287
|
-
page:
|
|
1580
|
+
page: IMagickGeometry;
|
|
1581
|
+
onProgress?: (event: ProgressEvent) => void;
|
|
1582
|
+
onWarning?: (event: WarningEvent) => void;
|
|
1288
1583
|
quality: number;
|
|
1584
|
+
renderingIntent: RenderingIntent;
|
|
1289
1585
|
readonly settings: MagickSettings;
|
|
1290
1586
|
readonly signature: string | null;
|
|
1587
|
+
readonly totalColors: number;
|
|
1291
1588
|
virtualPixelMethod: VirtualPixelMethod;
|
|
1292
1589
|
width: number;
|
|
1293
1590
|
alpha(value: AlphaOption): void;
|
|
@@ -1301,14 +1598,13 @@ export interface IMagickImage extends IDisposable {
|
|
|
1301
1598
|
border(width: number, height: number): void;
|
|
1302
1599
|
brightnessContrast(brightness: Percentage, contrast: Percentage): void;
|
|
1303
1600
|
brightnessContrast(brightness: Percentage, contrast: Percentage, channels: Channels): void;
|
|
1304
|
-
channelOffset(pixelChannel: PixelChannel): number;
|
|
1305
1601
|
charcoal(): void;
|
|
1306
1602
|
charcoal(radius: number, sigma: number): void;
|
|
1307
1603
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
1308
1604
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
1309
1605
|
clone<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1310
1606
|
clone<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1311
|
-
colorAlpha(color:
|
|
1607
|
+
colorAlpha(color: IMagickColor): void;
|
|
1312
1608
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
1313
1609
|
compare(image: IMagickImage, metric: ErrorMetric, channels: Channels): number;
|
|
1314
1610
|
composite(image: IMagickImage): void;
|
|
@@ -1333,62 +1629,73 @@ export interface IMagickImage extends IDisposable {
|
|
|
1333
1629
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, channels: Channels): void;
|
|
1334
1630
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, args: string): void;
|
|
1335
1631
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, args: string, channels: Channels): void;
|
|
1632
|
+
connectedComponents(connectivity: Connectivity): ConnectedComponent[];
|
|
1633
|
+
connectedComponents(settings: ConnectedComponentsSettings): ConnectedComponent[];
|
|
1336
1634
|
contrast(): void;
|
|
1337
1635
|
contrastStretch(blackPoint: Percentage): void;
|
|
1636
|
+
contrastStretch(blackPoint: Percentage, channels: Channels): void;
|
|
1338
1637
|
contrastStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1339
|
-
contrastStretch(blackPoint: Percentage, whitePoint
|
|
1340
|
-
crop(geometry:
|
|
1341
|
-
crop(geometry:
|
|
1638
|
+
contrastStretch(blackPoint: Percentage, whitePoint: Percentage, channels: Channels): void;
|
|
1639
|
+
crop(geometry: IMagickGeometry): void;
|
|
1640
|
+
crop(geometry: IMagickGeometry, gravity: Gravity): void;
|
|
1342
1641
|
crop(width: number, height: number): void;
|
|
1343
1642
|
crop(width: number, height: number, gravity: Gravity): void;
|
|
1344
|
-
cropToTiles(geometry:
|
|
1643
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1644
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1645
|
+
cropToTiles<TReturnType>(width: number, height: number, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1646
|
+
cropToTiles<TReturnType>(width: number, height: number, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1345
1647
|
deskew(threshold: Percentage): number;
|
|
1648
|
+
deskew(threshold: Percentage, autoCrop: boolean): number;
|
|
1346
1649
|
distort(method: DistortMethod, params: number[]): void;
|
|
1347
|
-
distort(
|
|
1650
|
+
distort(settings: DistortSettings, params: number[]): void;
|
|
1348
1651
|
draw(drawables: IDrawable[]): void;
|
|
1349
1652
|
draw(...drawables: IDrawable[]): void;
|
|
1350
1653
|
evaluate(channels: Channels, operator: EvaluateOperator, value: number): void;
|
|
1351
1654
|
evaluate(channels: Channels, operator: EvaluateOperator, value: Percentage): void;
|
|
1352
|
-
evaluate(channels: Channels, geometry:
|
|
1353
|
-
evaluate(channels: Channels, geometry:
|
|
1655
|
+
evaluate(channels: Channels, geometry: IMagickGeometry, operator: EvaluateOperator, value: number): void;
|
|
1656
|
+
evaluate(channels: Channels, geometry: IMagickGeometry, operator: EvaluateOperator, value: Percentage): void;
|
|
1354
1657
|
extent(width: number, height: number): void;
|
|
1355
1658
|
extent(width: number, height: number, gravity: Gravity): void;
|
|
1356
|
-
extent(width: number, height: number, backgroundColor:
|
|
1357
|
-
extent(geometry:
|
|
1358
|
-
extent(geometry:
|
|
1359
|
-
extent(geometry:
|
|
1360
|
-
extent(geometry:
|
|
1659
|
+
extent(width: number, height: number, backgroundColor: IMagickColor): void;
|
|
1660
|
+
extent(geometry: IMagickGeometry): void;
|
|
1661
|
+
extent(geometry: IMagickGeometry, gravity: Gravity): void;
|
|
1662
|
+
extent(geometry: IMagickGeometry, gravity: Gravity, backgroundColor: IMagickColor): void;
|
|
1663
|
+
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1361
1664
|
flip(): void;
|
|
1362
1665
|
flop(): void;
|
|
1363
1666
|
getArtifact(name: string): string | null;
|
|
1364
1667
|
getAttribute(name: string): string | null;
|
|
1668
|
+
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1669
|
+
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1365
1670
|
getProfile(name: string): IImageProfile | null;
|
|
1366
1671
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => TReturnType): TReturnType;
|
|
1367
1672
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1368
|
-
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1369
|
-
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1370
1673
|
grayscale(): void;
|
|
1371
1674
|
grayscale(method: PixelIntensityMethod): void;
|
|
1372
1675
|
histogram(): Map<string, number>;
|
|
1373
1676
|
inverseContrast(): void;
|
|
1374
|
-
|
|
1677
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1678
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1679
|
+
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1680
|
+
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1681
|
+
inverseOpaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1375
1682
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1376
|
-
inverseSigmoidalContrast(contrast: number,
|
|
1683
|
+
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
1377
1684
|
inverseSigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1378
1685
|
inverseSigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1379
|
-
inverseTransparent(color:
|
|
1686
|
+
inverseTransparent(color: IMagickColor): void;
|
|
1380
1687
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1381
1688
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1382
1689
|
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1383
1690
|
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1384
1691
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1385
|
-
liquidRescale(geometry:
|
|
1692
|
+
liquidRescale(geometry: IMagickGeometry): void;
|
|
1386
1693
|
liquidRescale(width: number, height: number): void;
|
|
1387
1694
|
modulate(brightness: Percentage): void;
|
|
1388
1695
|
modulate(brightness: Percentage, saturation: Percentage): void;
|
|
1389
1696
|
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void;
|
|
1390
|
-
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1391
1697
|
morphology(settings: MorphologySettings): void;
|
|
1698
|
+
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1392
1699
|
negate(): void;
|
|
1393
1700
|
negate(channels: Channels): void;
|
|
1394
1701
|
negateGrayScale(): void;
|
|
@@ -1396,31 +1703,32 @@ export interface IMagickImage extends IDisposable {
|
|
|
1396
1703
|
normalize(): void;
|
|
1397
1704
|
oilPaint(): void;
|
|
1398
1705
|
oilPaint(radius: number): void;
|
|
1399
|
-
opaque(target:
|
|
1706
|
+
opaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1400
1707
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
1401
1708
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1402
|
-
read(color:
|
|
1709
|
+
read(color: IMagickColor, width: number, height: number): void;
|
|
1403
1710
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1404
1711
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1405
1712
|
readFromCanvas(canvas: HTMLCanvasElement): void;
|
|
1406
1713
|
removeArtifact(name: string): void;
|
|
1407
1714
|
removeAttribute(name: string): void;
|
|
1715
|
+
removeProfile(profile: IImageProfile): void;
|
|
1408
1716
|
removeProfile(name: string): void;
|
|
1409
1717
|
removeWriteMask(): void;
|
|
1410
1718
|
repage(): void;
|
|
1411
|
-
resize(geometry:
|
|
1719
|
+
resize(geometry: IMagickGeometry): void;
|
|
1412
1720
|
resize(width: number, height: number): void;
|
|
1413
1721
|
rotate(degrees: number): void;
|
|
1414
1722
|
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1415
1723
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1416
|
-
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType
|
|
1417
|
-
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType
|
|
1724
|
+
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1725
|
+
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1418
1726
|
sepiaTone(): void;
|
|
1419
1727
|
sepiaTone(threshold: number): void;
|
|
1420
1728
|
sepiaTone(threshold: Percentage): void;
|
|
1421
|
-
setArtifact(name: string, value: string): void;
|
|
1422
|
-
setArtifact(name: string, value: boolean): void;
|
|
1729
|
+
setArtifact(name: string, value: string | boolean): void;
|
|
1423
1730
|
setAttribute(name: string, value: string): void;
|
|
1731
|
+
setProfile(profile: IImageProfile): void;
|
|
1424
1732
|
setProfile(name: string, data: ByteArray): void;
|
|
1425
1733
|
setWriteMask(image: IMagickImage): void;
|
|
1426
1734
|
sharpen(): void;
|
|
@@ -1428,18 +1736,20 @@ export interface IMagickImage extends IDisposable {
|
|
|
1428
1736
|
sharpen(radius: number, sigma: number, channels: Channels): void;
|
|
1429
1737
|
shave(leftRight: number, topBottom: number): void;
|
|
1430
1738
|
sigmoidalContrast(contrast: number): void;
|
|
1431
|
-
sigmoidalContrast(contrast: number,
|
|
1739
|
+
sigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
1432
1740
|
sigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1433
1741
|
sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1434
|
-
splice(geometry: MagickGeometry): void;
|
|
1435
1742
|
solarize(): void;
|
|
1436
1743
|
solarize(factor: number): void;
|
|
1437
1744
|
solarize(factor: Percentage): void;
|
|
1745
|
+
splice(geometry: IMagickGeometry): void;
|
|
1438
1746
|
statistics(): IStatistics;
|
|
1439
1747
|
statistics(channels: Channels): IStatistics;
|
|
1440
1748
|
strip(): void;
|
|
1749
|
+
threshold(percentage: Percentage): void;
|
|
1750
|
+
threshold(percentage: Percentage, channels: Channels): void;
|
|
1441
1751
|
toString(): string;
|
|
1442
|
-
transparent(color:
|
|
1752
|
+
transparent(color: IMagickColor): void;
|
|
1443
1753
|
trim(): void;
|
|
1444
1754
|
trim(...edges: Gravity[]): void;
|
|
1445
1755
|
trim(percentage: Percentage): void;
|
|
@@ -1448,13 +1758,15 @@ export interface IMagickImage extends IDisposable {
|
|
|
1448
1758
|
wave(): void;
|
|
1449
1759
|
wave(method: PixelInterpolateMethod, amplitude: number, length: number): void;
|
|
1450
1760
|
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1451
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1452
1761
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1762
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1453
1763
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1454
1764
|
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
1455
1765
|
}
|
|
1456
1766
|
export declare class MagickImage extends NativeInstance implements IMagickImage {
|
|
1457
1767
|
private readonly _settings;
|
|
1768
|
+
private _progress?;
|
|
1769
|
+
private _warning?;
|
|
1458
1770
|
private constructor();
|
|
1459
1771
|
get animationDelay(): number;
|
|
1460
1772
|
set animationDelay(value: number);
|
|
@@ -1464,15 +1776,15 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1464
1776
|
set animationTicksPerSecond(value: number);
|
|
1465
1777
|
get artifactNames(): ReadonlyArray<string>;
|
|
1466
1778
|
get attributeNames(): ReadonlyArray<string>;
|
|
1467
|
-
get backgroundColor():
|
|
1468
|
-
set backgroundColor(value:
|
|
1779
|
+
get backgroundColor(): IMagickColor;
|
|
1780
|
+
set backgroundColor(value: IMagickColor);
|
|
1469
1781
|
get baseHeight(): number;
|
|
1470
1782
|
get baseWidth(): number;
|
|
1471
1783
|
get blackPointCompensation(): boolean;
|
|
1472
1784
|
set blackPointCompensation(value: boolean);
|
|
1473
|
-
get borderColor():
|
|
1474
|
-
set borderColor(value:
|
|
1475
|
-
get boundingBox():
|
|
1785
|
+
get borderColor(): IMagickColor;
|
|
1786
|
+
set borderColor(value: IMagickColor);
|
|
1787
|
+
get boundingBox(): IMagickGeometry | null;
|
|
1476
1788
|
get channelCount(): number;
|
|
1477
1789
|
get channels(): ReadonlyArray<PixelChannel>;
|
|
1478
1790
|
get chromaticity(): ChromaticityInfo;
|
|
@@ -1510,18 +1822,28 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1510
1822
|
set hasAlpha(value: boolean);
|
|
1511
1823
|
get height(): number;
|
|
1512
1824
|
get interlace(): Interlace;
|
|
1825
|
+
get isOpaque(): boolean;
|
|
1513
1826
|
get interpolate(): PixelInterpolateMethod;
|
|
1514
1827
|
set interpolate(value: PixelInterpolateMethod);
|
|
1515
1828
|
get label(): string | null;
|
|
1516
1829
|
set label(value: string | null);
|
|
1830
|
+
get matteColor(): IMagickColor;
|
|
1831
|
+
set matteColor(value: IMagickColor);
|
|
1517
1832
|
get orientation(): OrientationType;
|
|
1518
1833
|
set orientation(value: OrientationType);
|
|
1519
|
-
get page():
|
|
1520
|
-
set page(value:
|
|
1834
|
+
get page(): IMagickGeometry;
|
|
1835
|
+
set page(value: IMagickGeometry);
|
|
1836
|
+
get onProgress(): ((event: ProgressEvent) => number) | undefined;
|
|
1837
|
+
set onProgress(value: ((event: ProgressEvent) => number) | undefined);
|
|
1838
|
+
get onWarning(): ((event: WarningEvent) => number) | undefined;
|
|
1839
|
+
set onWarning(value: ((event: WarningEvent) => number) | undefined);
|
|
1521
1840
|
get quality(): number;
|
|
1522
1841
|
set quality(value: number);
|
|
1842
|
+
get renderingIntent(): RenderingIntent;
|
|
1843
|
+
set renderingIntent(value: RenderingIntent);
|
|
1523
1844
|
get settings(): MagickSettings;
|
|
1524
1845
|
get signature(): string | null;
|
|
1846
|
+
get totalColors(): number;
|
|
1525
1847
|
get virtualPixelMethod(): VirtualPixelMethod;
|
|
1526
1848
|
set virtualPixelMethod(value: VirtualPixelMethod);
|
|
1527
1849
|
get width(): number;
|
|
@@ -1536,14 +1858,13 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1536
1858
|
border(width: number, height: number): void;
|
|
1537
1859
|
brightnessContrast(brightness: Percentage, contrast: Percentage): void;
|
|
1538
1860
|
brightnessContrast(brightness: Percentage, contrast: Percentage, channels: Channels): void;
|
|
1539
|
-
channelOffset(pixelChannel: PixelChannel): number;
|
|
1540
1861
|
charcoal(): void;
|
|
1541
1862
|
charcoal(radius: number, sigma: number): void;
|
|
1542
1863
|
clahe(xTiles: number, yTiles: number, numberBins: number, clipLimit: number): void;
|
|
1543
1864
|
clahe(xTiles: Percentage, yTiles: Percentage, numberBins: number, clipLimit: number): void;
|
|
1544
1865
|
clone<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1545
1866
|
clone<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1546
|
-
colorAlpha(color:
|
|
1867
|
+
colorAlpha(color: IMagickColor): void;
|
|
1547
1868
|
compare(image: IMagickImage, metric: ErrorMetric): number;
|
|
1548
1869
|
compare(image: IMagickImage, metric: ErrorMetric, channels: Channels): number;
|
|
1549
1870
|
composite(image: IMagickImage): void;
|
|
@@ -1568,58 +1889,70 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1568
1889
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, channels: Channels): void;
|
|
1569
1890
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, args: string): void;
|
|
1570
1891
|
compositeGravity(image: IMagickImage, gravity: Gravity, compose: CompositeOperator, point: Point, args: string, channels: Channels): void;
|
|
1892
|
+
connectedComponents(connectivity: Connectivity): ConnectedComponent[];
|
|
1893
|
+
connectedComponents(settings: ConnectedComponentsSettings): ConnectedComponent[];
|
|
1571
1894
|
contrast: () => void;
|
|
1572
1895
|
contrastStretch(blackPoint: Percentage): void;
|
|
1896
|
+
contrastStretch(blackPoint: Percentage, channnels: Channels): void;
|
|
1573
1897
|
contrastStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1898
|
+
contrastStretch(blackPoint: Percentage, whitePoint: Percentage, channnels: Channels): void;
|
|
1574
1899
|
static create(): IMagickImage;
|
|
1575
|
-
static create(color:
|
|
1900
|
+
static create(color: IMagickColor, width: number, height: number): IMagickImage;
|
|
1576
1901
|
static create(fileName: string, settings?: MagickReadSettings): IMagickImage;
|
|
1577
1902
|
static create(array: ByteArray, settings?: MagickReadSettings): IMagickImage;
|
|
1578
|
-
crop(geometry:
|
|
1579
|
-
crop(geometry:
|
|
1903
|
+
crop(geometry: IMagickGeometry): void;
|
|
1904
|
+
crop(geometry: IMagickGeometry, gravity: Gravity): void;
|
|
1580
1905
|
crop(width: number, height: number): void;
|
|
1581
1906
|
crop(width: number, height: number, gravity: Gravity): void;
|
|
1582
|
-
cropToTiles(geometry:
|
|
1907
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1908
|
+
cropToTiles<TReturnType>(geometry: IMagickGeometry, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1909
|
+
cropToTiles<TReturnType>(width: number, height: number, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1910
|
+
cropToTiles<TReturnType>(width: number, height: number, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1583
1911
|
deskew(threshold: Percentage): number;
|
|
1912
|
+
deskew(threshold: Percentage, autoCrop: boolean): number;
|
|
1584
1913
|
distort(method: DistortMethod, params: number[]): void;
|
|
1585
|
-
distort(
|
|
1914
|
+
distort(settings: DistortSettings, params: number[]): void;
|
|
1586
1915
|
draw(drawables: IDrawable[]): void;
|
|
1587
1916
|
draw(...drawables: IDrawable[]): void;
|
|
1588
1917
|
evaluate(channels: Channels, operator: EvaluateOperator, value: number): void;
|
|
1589
1918
|
evaluate(channels: Channels, operator: EvaluateOperator, value: Percentage): void;
|
|
1590
|
-
evaluate(channels: Channels, geometry:
|
|
1591
|
-
evaluate(channels: Channels, geometry:
|
|
1919
|
+
evaluate(channels: Channels, geometry: IMagickGeometry, operator: EvaluateOperator, value: number): void;
|
|
1920
|
+
evaluate(channels: Channels, geometry: IMagickGeometry, operator: EvaluateOperator, value: Percentage): void;
|
|
1592
1921
|
extent(width: number, height: number): void;
|
|
1593
1922
|
extent(width: number, height: number, gravity: Gravity): void;
|
|
1594
|
-
extent(width: number, height: number, backgroundColor:
|
|
1595
|
-
extent(geometry:
|
|
1596
|
-
extent(geometry:
|
|
1597
|
-
extent(geometry:
|
|
1598
|
-
extent(geometry:
|
|
1923
|
+
extent(width: number, height: number, backgroundColor: IMagickColor): void;
|
|
1924
|
+
extent(geometry: IMagickGeometry): void;
|
|
1925
|
+
extent(geometry: IMagickGeometry, gravity: Gravity): void;
|
|
1926
|
+
extent(geometry: IMagickGeometry, gravity: Gravity, backgroundColor: IMagickColor): void;
|
|
1927
|
+
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1599
1928
|
flip(): void;
|
|
1600
1929
|
flop(): void;
|
|
1601
1930
|
getArtifact(name: string): string | null;
|
|
1602
1931
|
getAttribute(name: string): string | null;
|
|
1932
|
+
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1933
|
+
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1603
1934
|
getProfile(name: string): IImageProfile | null;
|
|
1604
1935
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => TReturnType): TReturnType;
|
|
1605
1936
|
getWriteMask<TReturnType>(func: (mask: IMagickImage | null) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1606
|
-
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
1607
|
-
getPixels<TReturnType>(func: (pixels: IPixelCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1608
1937
|
grayscale(method?: PixelIntensityMethod): void;
|
|
1609
1938
|
histogram(): Map<string, number>;
|
|
1610
1939
|
inverseContrast: () => void;
|
|
1611
|
-
|
|
1940
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1941
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1942
|
+
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1943
|
+
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1944
|
+
inverseOpaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
1612
1945
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1613
|
-
inverseSigmoidalContrast(contrast: number,
|
|
1946
|
+
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
1614
1947
|
inverseSigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1615
1948
|
inverseSigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1616
|
-
inverseTransparent: (color:
|
|
1949
|
+
inverseTransparent: (color: IMagickColor) => void;
|
|
1617
1950
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1618
1951
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1619
1952
|
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1620
1953
|
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1621
1954
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1622
|
-
liquidRescale(geometry:
|
|
1955
|
+
liquidRescale(geometry: IMagickGeometry): void;
|
|
1623
1956
|
liquidRescale(width: number, height: number): void;
|
|
1624
1957
|
negate(): void;
|
|
1625
1958
|
negateGrayScale(): void;
|
|
@@ -1627,50 +1960,53 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1627
1960
|
modulate(brightness: Percentage): void;
|
|
1628
1961
|
modulate(brightness: Percentage, saturation: Percentage): void;
|
|
1629
1962
|
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void;
|
|
1630
|
-
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1631
1963
|
morphology(settings: MorphologySettings): void;
|
|
1964
|
+
motionBlur(radius: number, sigma: number, angle: number): void;
|
|
1632
1965
|
oilPaint(): void;
|
|
1633
1966
|
oilPaint(radius: number): void;
|
|
1634
|
-
opaque: (target:
|
|
1967
|
+
opaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
1635
1968
|
ping(fileName: string, settings?: MagickReadSettings): void;
|
|
1636
1969
|
ping(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1637
|
-
read(color:
|
|
1970
|
+
read(color: IMagickColor, width: number, height: number): void;
|
|
1638
1971
|
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1639
1972
|
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1640
1973
|
readFromCanvas(canvas: HTMLCanvasElement): void;
|
|
1641
1974
|
removeArtifact(name: string): void;
|
|
1642
1975
|
removeAttribute(name: string): void;
|
|
1976
|
+
removeProfile(profile: IImageProfile): void;
|
|
1643
1977
|
removeProfile(name: string): void;
|
|
1644
1978
|
removeWriteMask(): void;
|
|
1645
1979
|
repage(): void;
|
|
1646
|
-
resize(geometry:
|
|
1980
|
+
resize(geometry: IMagickGeometry): void;
|
|
1647
1981
|
resize(width: number, height: number): void;
|
|
1648
1982
|
rotate(degrees: number): void;
|
|
1649
1983
|
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1650
1984
|
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1651
|
-
separate<TReturnType>(func: (images: IMagickImageCollection) => TReturnType
|
|
1652
|
-
separate<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType
|
|
1985
|
+
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1986
|
+
separate<TReturnType>(channels: Channels, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1653
1987
|
sepiaTone(): void;
|
|
1654
|
-
setArtifact(name: string, value: string): void;
|
|
1655
|
-
setArtifact(name: string, value: boolean): void;
|
|
1988
|
+
setArtifact(name: string, value: string | boolean): void;
|
|
1656
1989
|
setAttribute(name: string, value: string): void;
|
|
1657
|
-
setProfile(
|
|
1990
|
+
setProfile(profile: IImageProfile): void;
|
|
1991
|
+
setProfile(pname: string, data: ByteArray): void;
|
|
1658
1992
|
setWriteMask(image: IMagickImage): void;
|
|
1659
1993
|
sharpen(): void;
|
|
1660
1994
|
sharpen(radius: number, sigma: number): void;
|
|
1661
1995
|
sharpen(radius: number, sigma: number, channels: Channels): void;
|
|
1662
1996
|
shave(leftRight: number, topBottom: number): void;
|
|
1663
1997
|
sigmoidalContrast(contrast: number): void;
|
|
1664
|
-
sigmoidalContrast(contrast: number,
|
|
1998
|
+
sigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
1665
1999
|
sigmoidalContrast(contrast: number, midpoint: number): void;
|
|
1666
2000
|
sigmoidalContrast(contrast: number, midpoint: number, channels: Channels): void;
|
|
1667
2001
|
solarize(): void;
|
|
1668
|
-
splice(geometry:
|
|
2002
|
+
splice(geometry: IMagickGeometry): void;
|
|
1669
2003
|
statistics(): IStatistics;
|
|
1670
2004
|
statistics(channels: Channels): IStatistics;
|
|
1671
2005
|
strip(): void;
|
|
2006
|
+
threshold(percentage: Percentage): void;
|
|
2007
|
+
threshold(percentage: Percentage, channels: Channels): void;
|
|
1672
2008
|
toString: () => string;
|
|
1673
|
-
transparent(color:
|
|
2009
|
+
transparent(color: IMagickColor): void;
|
|
1674
2010
|
trim(): void;
|
|
1675
2011
|
trim(...edges: Gravity[]): void;
|
|
1676
2012
|
trim(percentage: Percentage): void;
|
|
@@ -1679,28 +2015,30 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1679
2015
|
vignette(): void;
|
|
1680
2016
|
vignette(radius: number, sigma: number, x: number, y: number): void;
|
|
1681
2017
|
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1682
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1683
2018
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2019
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1684
2020
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1685
2021
|
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
2022
|
+
protected onDispose(): void;
|
|
1686
2023
|
private _contrast;
|
|
1687
2024
|
private _opaque;
|
|
1688
2025
|
private _sigmoidalContrast;
|
|
1689
2026
|
private _transparent;
|
|
1690
2027
|
private static createInstance;
|
|
1691
2028
|
private fromBool;
|
|
2029
|
+
private disposeProgressDelegate;
|
|
1692
2030
|
private readOrPing;
|
|
1693
2031
|
private readFromArray;
|
|
1694
2032
|
private toBool;
|
|
1695
2033
|
private valueOrDefault;
|
|
2034
|
+
private useException;
|
|
2035
|
+
private useExceptionPointer;
|
|
1696
2036
|
}
|
|
1697
2037
|
export declare class ImageMagick {
|
|
1698
2038
|
private readonly loader;
|
|
1699
2039
|
private api?;
|
|
1700
|
-
|
|
1701
|
-
static
|
|
1702
|
-
static read<TReturnType>(color: MagickColor, width: number, height: number, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1703
|
-
static read<TReturnType>(color: MagickColor, width: number, height: number, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2040
|
+
static read<TReturnType>(color: IMagickColor, width: number, height: number, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
2041
|
+
static read<TReturnType>(color: IMagickColor, width: number, height: number, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1704
2042
|
static read<TReturnType>(array: ByteArray, format: MagickFormat, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1705
2043
|
static read<TReturnType>(array: ByteArray, format: MagickFormat, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1706
2044
|
static read<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
@@ -1717,8 +2055,6 @@ export declare class ImageMagick {
|
|
|
1717
2055
|
static readCollection<TReturnType>(array: ByteArray, format: MagickFormat, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1718
2056
|
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1719
2057
|
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1720
|
-
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1721
|
-
static readCollection<TReturnType>(array: ByteArray, settings: MagickReadSettings, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1722
2058
|
static readCollection<TReturnType>(array: ByteArray, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1723
2059
|
static readCollection<TReturnType>(array: ByteArray, func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1724
2060
|
static readCollection<TReturnType>(fileName: string, settings: MagickReadSettings, func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
@@ -1728,254 +2064,174 @@ export declare class ImageMagick {
|
|
|
1728
2064
|
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1729
2065
|
static readFromCanvas<TReturnType>(canvas: HTMLCanvasElement, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1730
2066
|
}
|
|
1731
|
-
export declare function initializeImageMagick(wasmLocationOrData
|
|
1732
|
-
export declare enum LogEventTypes {
|
|
1733
|
-
None = 0,
|
|
1734
|
-
Accelerate = 1,
|
|
1735
|
-
Annotate = 2,
|
|
1736
|
-
Blob = 4,
|
|
1737
|
-
Cache = 8,
|
|
1738
|
-
Coder = 16,
|
|
1739
|
-
Configure = 32,
|
|
1740
|
-
Deprecate = 64,
|
|
1741
|
-
Draw = 128,
|
|
1742
|
-
Exception = 256,
|
|
1743
|
-
Image = 512,
|
|
1744
|
-
Locale = 1024,
|
|
1745
|
-
Module = 2048,
|
|
1746
|
-
Pixel = 4096,
|
|
1747
|
-
Policy = 8192,
|
|
1748
|
-
Resource = 16384,
|
|
1749
|
-
Trace = 32768,
|
|
1750
|
-
Transform = 65536,
|
|
1751
|
-
User = 131072,
|
|
1752
|
-
Wand = 262144,
|
|
1753
|
-
Detailed = 2147450879,
|
|
1754
|
-
All = 2147483647
|
|
1755
|
-
}
|
|
1756
|
-
export declare class LogEvent {
|
|
1757
|
-
eventType: LogEventTypes;
|
|
1758
|
-
message: string;
|
|
1759
|
-
constructor(eventType: LogEventTypes, message?: string);
|
|
1760
|
-
}
|
|
2067
|
+
export declare function initializeImageMagick(wasmLocationOrData: URL | ByteArray): Promise<void>;
|
|
1761
2068
|
export declare class MagickColors {
|
|
1762
|
-
static get None():
|
|
1763
|
-
static get Transparent():
|
|
1764
|
-
static get AliceBlue():
|
|
1765
|
-
static get AntiqueWhite():
|
|
1766
|
-
static get Aqua():
|
|
1767
|
-
static get Aquamarine():
|
|
1768
|
-
static get Azure():
|
|
1769
|
-
static get Beige():
|
|
1770
|
-
static get Bisque():
|
|
1771
|
-
static get Black():
|
|
1772
|
-
static get BlanchedAlmond():
|
|
1773
|
-
static get Blue():
|
|
1774
|
-
static get BlueViolet():
|
|
1775
|
-
static get Brown():
|
|
1776
|
-
static get BurlyWood():
|
|
1777
|
-
static get CadetBlue():
|
|
1778
|
-
static get Chartreuse():
|
|
1779
|
-
static get Chocolate():
|
|
1780
|
-
static get Coral():
|
|
1781
|
-
static get CornflowerBlue():
|
|
1782
|
-
static get Cornsilk():
|
|
1783
|
-
static get Crimson():
|
|
1784
|
-
static get Cyan():
|
|
1785
|
-
static get DarkBlue():
|
|
1786
|
-
static get DarkCyan():
|
|
1787
|
-
static get DarkGoldenrod():
|
|
1788
|
-
static get DarkGray():
|
|
1789
|
-
static get DarkGreen():
|
|
1790
|
-
static get DarkKhaki():
|
|
1791
|
-
static get DarkMagenta():
|
|
1792
|
-
static get DarkOliveGreen():
|
|
1793
|
-
static get DarkOrange():
|
|
1794
|
-
static get DarkOrchid():
|
|
1795
|
-
static get DarkRed():
|
|
1796
|
-
static get DarkSalmon():
|
|
1797
|
-
static get DarkSeaGreen():
|
|
1798
|
-
static get DarkSlateBlue():
|
|
1799
|
-
static get DarkSlateGray():
|
|
1800
|
-
static get DarkTurquoise():
|
|
1801
|
-
static get DarkViolet():
|
|
1802
|
-
static get DeepPink():
|
|
1803
|
-
static get DeepSkyBlue():
|
|
1804
|
-
static get DimGray():
|
|
1805
|
-
static get DodgerBlue():
|
|
1806
|
-
static get Firebrick():
|
|
1807
|
-
static get FloralWhite():
|
|
1808
|
-
static get ForestGreen():
|
|
1809
|
-
static get Fuchsia():
|
|
1810
|
-
static get Gainsboro():
|
|
1811
|
-
static get GhostWhite():
|
|
1812
|
-
static get Gold():
|
|
1813
|
-
static get Goldenrod():
|
|
1814
|
-
static get Gray():
|
|
1815
|
-
static get Green():
|
|
1816
|
-
static get GreenYellow():
|
|
1817
|
-
static get Honeydew():
|
|
1818
|
-
static get HotPink():
|
|
1819
|
-
static get IndianRed():
|
|
1820
|
-
static get Indigo():
|
|
1821
|
-
static get Ivory():
|
|
1822
|
-
static get Khaki():
|
|
1823
|
-
static get Lavender():
|
|
1824
|
-
static get LavenderBlush():
|
|
1825
|
-
static get LawnGreen():
|
|
1826
|
-
static get LemonChiffon():
|
|
1827
|
-
static get LightBlue():
|
|
1828
|
-
static get LightCoral():
|
|
1829
|
-
static get LightCyan():
|
|
1830
|
-
static get LightGoldenrodYellow():
|
|
1831
|
-
static get LightGreen():
|
|
1832
|
-
static get LightGray():
|
|
1833
|
-
static get LightPink():
|
|
1834
|
-
static get LightSalmon():
|
|
1835
|
-
static get LightSeaGreen():
|
|
1836
|
-
static get LightSkyBlue():
|
|
1837
|
-
static get LightSlateGray():
|
|
1838
|
-
static get LightSteelBlue():
|
|
1839
|
-
static get LightYellow():
|
|
1840
|
-
static get Lime():
|
|
1841
|
-
static get LimeGreen():
|
|
1842
|
-
static get Linen():
|
|
1843
|
-
static get Magenta():
|
|
1844
|
-
static get Maroon():
|
|
1845
|
-
static get MediumAquamarine():
|
|
1846
|
-
static get MediumBlue():
|
|
1847
|
-
static get MediumOrchid():
|
|
1848
|
-
static get MediumPurple():
|
|
1849
|
-
static get MediumSeaGreen():
|
|
1850
|
-
static get MediumSlateBlue():
|
|
1851
|
-
static get MediumSpringGreen():
|
|
1852
|
-
static get MediumTurquoise():
|
|
1853
|
-
static get MediumVioletRed():
|
|
1854
|
-
static get MidnightBlue():
|
|
1855
|
-
static get MintCream():
|
|
1856
|
-
static get MistyRose():
|
|
1857
|
-
static get Moccasin():
|
|
1858
|
-
static get NavajoWhite():
|
|
1859
|
-
static get Navy():
|
|
1860
|
-
static get OldLace():
|
|
1861
|
-
static get Olive():
|
|
1862
|
-
static get OliveDrab():
|
|
1863
|
-
static get Orange():
|
|
1864
|
-
static get OrangeRed():
|
|
1865
|
-
static get Orchid():
|
|
1866
|
-
static get PaleGoldenrod():
|
|
1867
|
-
static get PaleGreen():
|
|
1868
|
-
static get PaleTurquoise():
|
|
1869
|
-
static get PaleVioletRed():
|
|
1870
|
-
static get PapayaWhip():
|
|
1871
|
-
static get PeachPuff():
|
|
1872
|
-
static get Peru():
|
|
1873
|
-
static get Pink():
|
|
1874
|
-
static get Plum():
|
|
1875
|
-
static get PowderBlue():
|
|
1876
|
-
static get Purple():
|
|
1877
|
-
static get
|
|
1878
|
-
static get
|
|
1879
|
-
static get
|
|
1880
|
-
static get
|
|
1881
|
-
static get
|
|
1882
|
-
static get
|
|
1883
|
-
static get
|
|
1884
|
-
static get
|
|
1885
|
-
static get
|
|
1886
|
-
static get
|
|
1887
|
-
static get
|
|
1888
|
-
static get
|
|
1889
|
-
static get
|
|
1890
|
-
static get
|
|
1891
|
-
static get
|
|
1892
|
-
static get
|
|
1893
|
-
static get
|
|
1894
|
-
static get
|
|
1895
|
-
static get
|
|
1896
|
-
static get
|
|
1897
|
-
static get
|
|
1898
|
-
static get
|
|
1899
|
-
static get
|
|
1900
|
-
static get
|
|
1901
|
-
static get
|
|
1902
|
-
static get
|
|
1903
|
-
static get
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
CorruptImageError = 425,
|
|
1913
|
-
FileOpenError = 430,
|
|
1914
|
-
BlobError = 435,
|
|
1915
|
-
StreamError = 440,
|
|
1916
|
-
CacheError = 445,
|
|
1917
|
-
CoderError = 450,
|
|
1918
|
-
FilterError = 452,
|
|
1919
|
-
ModuleError = 455,
|
|
1920
|
-
DrawError = 460,
|
|
1921
|
-
ImageError = 465,
|
|
1922
|
-
WandError = 470,
|
|
1923
|
-
RandomError = 475,
|
|
1924
|
-
XServerError = 480,
|
|
1925
|
-
MonitorError = 485,
|
|
1926
|
-
RegistryError = 490,
|
|
1927
|
-
ConfigureError = 495,
|
|
1928
|
-
PolicyError = 499
|
|
1929
|
-
}
|
|
1930
|
-
export declare class MagickError extends Error {
|
|
1931
|
-
private readonly _severity;
|
|
1932
|
-
private _relatedErrors;
|
|
1933
|
-
constructor(message: string, severity?: MagickErrorSeverity);
|
|
1934
|
-
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1935
|
-
get severity(): MagickErrorSeverity;
|
|
1936
|
-
}
|
|
1937
|
-
export declare class MagickFormatInfo {
|
|
1938
|
-
private readonly _format;
|
|
1939
|
-
private readonly _description;
|
|
1940
|
-
private readonly _supportsMultipleFrames;
|
|
1941
|
-
private readonly _supportsReading;
|
|
1942
|
-
private readonly _supportsWriting;
|
|
1943
|
-
private static _all;
|
|
1944
|
-
private constructor();
|
|
1945
|
-
get description(): string;
|
|
1946
|
-
get format(): MagickFormat;
|
|
1947
|
-
get supportsMultipleFrames(): boolean;
|
|
1948
|
-
get supportsReading(): boolean;
|
|
1949
|
-
get supportsWriting(): boolean;
|
|
1950
|
-
static get all(): ReadonlyArray<MagickFormatInfo>;
|
|
1951
|
-
static create(format: MagickFormat): MagickFormatInfo;
|
|
1952
|
-
private static loadFormats;
|
|
1953
|
-
private static convertFormat;
|
|
2069
|
+
static get None(): IMagickColor;
|
|
2070
|
+
static get Transparent(): IMagickColor;
|
|
2071
|
+
static get AliceBlue(): IMagickColor;
|
|
2072
|
+
static get AntiqueWhite(): IMagickColor;
|
|
2073
|
+
static get Aqua(): IMagickColor;
|
|
2074
|
+
static get Aquamarine(): IMagickColor;
|
|
2075
|
+
static get Azure(): IMagickColor;
|
|
2076
|
+
static get Beige(): IMagickColor;
|
|
2077
|
+
static get Bisque(): IMagickColor;
|
|
2078
|
+
static get Black(): IMagickColor;
|
|
2079
|
+
static get BlanchedAlmond(): IMagickColor;
|
|
2080
|
+
static get Blue(): IMagickColor;
|
|
2081
|
+
static get BlueViolet(): IMagickColor;
|
|
2082
|
+
static get Brown(): IMagickColor;
|
|
2083
|
+
static get BurlyWood(): IMagickColor;
|
|
2084
|
+
static get CadetBlue(): IMagickColor;
|
|
2085
|
+
static get Chartreuse(): IMagickColor;
|
|
2086
|
+
static get Chocolate(): IMagickColor;
|
|
2087
|
+
static get Coral(): IMagickColor;
|
|
2088
|
+
static get CornflowerBlue(): IMagickColor;
|
|
2089
|
+
static get Cornsilk(): IMagickColor;
|
|
2090
|
+
static get Crimson(): IMagickColor;
|
|
2091
|
+
static get Cyan(): IMagickColor;
|
|
2092
|
+
static get DarkBlue(): IMagickColor;
|
|
2093
|
+
static get DarkCyan(): IMagickColor;
|
|
2094
|
+
static get DarkGoldenrod(): IMagickColor;
|
|
2095
|
+
static get DarkGray(): IMagickColor;
|
|
2096
|
+
static get DarkGreen(): IMagickColor;
|
|
2097
|
+
static get DarkKhaki(): IMagickColor;
|
|
2098
|
+
static get DarkMagenta(): IMagickColor;
|
|
2099
|
+
static get DarkOliveGreen(): IMagickColor;
|
|
2100
|
+
static get DarkOrange(): IMagickColor;
|
|
2101
|
+
static get DarkOrchid(): IMagickColor;
|
|
2102
|
+
static get DarkRed(): IMagickColor;
|
|
2103
|
+
static get DarkSalmon(): IMagickColor;
|
|
2104
|
+
static get DarkSeaGreen(): IMagickColor;
|
|
2105
|
+
static get DarkSlateBlue(): IMagickColor;
|
|
2106
|
+
static get DarkSlateGray(): IMagickColor;
|
|
2107
|
+
static get DarkTurquoise(): IMagickColor;
|
|
2108
|
+
static get DarkViolet(): IMagickColor;
|
|
2109
|
+
static get DeepPink(): IMagickColor;
|
|
2110
|
+
static get DeepSkyBlue(): IMagickColor;
|
|
2111
|
+
static get DimGray(): IMagickColor;
|
|
2112
|
+
static get DodgerBlue(): IMagickColor;
|
|
2113
|
+
static get Firebrick(): IMagickColor;
|
|
2114
|
+
static get FloralWhite(): IMagickColor;
|
|
2115
|
+
static get ForestGreen(): IMagickColor;
|
|
2116
|
+
static get Fuchsia(): IMagickColor;
|
|
2117
|
+
static get Gainsboro(): IMagickColor;
|
|
2118
|
+
static get GhostWhite(): IMagickColor;
|
|
2119
|
+
static get Gold(): IMagickColor;
|
|
2120
|
+
static get Goldenrod(): IMagickColor;
|
|
2121
|
+
static get Gray(): IMagickColor;
|
|
2122
|
+
static get Green(): IMagickColor;
|
|
2123
|
+
static get GreenYellow(): IMagickColor;
|
|
2124
|
+
static get Honeydew(): IMagickColor;
|
|
2125
|
+
static get HotPink(): IMagickColor;
|
|
2126
|
+
static get IndianRed(): IMagickColor;
|
|
2127
|
+
static get Indigo(): IMagickColor;
|
|
2128
|
+
static get Ivory(): IMagickColor;
|
|
2129
|
+
static get Khaki(): IMagickColor;
|
|
2130
|
+
static get Lavender(): IMagickColor;
|
|
2131
|
+
static get LavenderBlush(): IMagickColor;
|
|
2132
|
+
static get LawnGreen(): IMagickColor;
|
|
2133
|
+
static get LemonChiffon(): IMagickColor;
|
|
2134
|
+
static get LightBlue(): IMagickColor;
|
|
2135
|
+
static get LightCoral(): IMagickColor;
|
|
2136
|
+
static get LightCyan(): IMagickColor;
|
|
2137
|
+
static get LightGoldenrodYellow(): IMagickColor;
|
|
2138
|
+
static get LightGreen(): IMagickColor;
|
|
2139
|
+
static get LightGray(): IMagickColor;
|
|
2140
|
+
static get LightPink(): IMagickColor;
|
|
2141
|
+
static get LightSalmon(): IMagickColor;
|
|
2142
|
+
static get LightSeaGreen(): IMagickColor;
|
|
2143
|
+
static get LightSkyBlue(): IMagickColor;
|
|
2144
|
+
static get LightSlateGray(): IMagickColor;
|
|
2145
|
+
static get LightSteelBlue(): IMagickColor;
|
|
2146
|
+
static get LightYellow(): IMagickColor;
|
|
2147
|
+
static get Lime(): IMagickColor;
|
|
2148
|
+
static get LimeGreen(): IMagickColor;
|
|
2149
|
+
static get Linen(): IMagickColor;
|
|
2150
|
+
static get Magenta(): IMagickColor;
|
|
2151
|
+
static get Maroon(): IMagickColor;
|
|
2152
|
+
static get MediumAquamarine(): IMagickColor;
|
|
2153
|
+
static get MediumBlue(): IMagickColor;
|
|
2154
|
+
static get MediumOrchid(): IMagickColor;
|
|
2155
|
+
static get MediumPurple(): IMagickColor;
|
|
2156
|
+
static get MediumSeaGreen(): IMagickColor;
|
|
2157
|
+
static get MediumSlateBlue(): IMagickColor;
|
|
2158
|
+
static get MediumSpringGreen(): IMagickColor;
|
|
2159
|
+
static get MediumTurquoise(): IMagickColor;
|
|
2160
|
+
static get MediumVioletRed(): IMagickColor;
|
|
2161
|
+
static get MidnightBlue(): IMagickColor;
|
|
2162
|
+
static get MintCream(): IMagickColor;
|
|
2163
|
+
static get MistyRose(): IMagickColor;
|
|
2164
|
+
static get Moccasin(): IMagickColor;
|
|
2165
|
+
static get NavajoWhite(): IMagickColor;
|
|
2166
|
+
static get Navy(): IMagickColor;
|
|
2167
|
+
static get OldLace(): IMagickColor;
|
|
2168
|
+
static get Olive(): IMagickColor;
|
|
2169
|
+
static get OliveDrab(): IMagickColor;
|
|
2170
|
+
static get Orange(): IMagickColor;
|
|
2171
|
+
static get OrangeRed(): IMagickColor;
|
|
2172
|
+
static get Orchid(): IMagickColor;
|
|
2173
|
+
static get PaleGoldenrod(): IMagickColor;
|
|
2174
|
+
static get PaleGreen(): IMagickColor;
|
|
2175
|
+
static get PaleTurquoise(): IMagickColor;
|
|
2176
|
+
static get PaleVioletRed(): IMagickColor;
|
|
2177
|
+
static get PapayaWhip(): IMagickColor;
|
|
2178
|
+
static get PeachPuff(): IMagickColor;
|
|
2179
|
+
static get Peru(): IMagickColor;
|
|
2180
|
+
static get Pink(): IMagickColor;
|
|
2181
|
+
static get Plum(): IMagickColor;
|
|
2182
|
+
static get PowderBlue(): IMagickColor;
|
|
2183
|
+
static get Purple(): IMagickColor;
|
|
2184
|
+
static get RebeccaPurple(): IMagickColor;
|
|
2185
|
+
static get Red(): IMagickColor;
|
|
2186
|
+
static get RosyBrown(): IMagickColor;
|
|
2187
|
+
static get RoyalBlue(): IMagickColor;
|
|
2188
|
+
static get SaddleBrown(): IMagickColor;
|
|
2189
|
+
static get Salmon(): IMagickColor;
|
|
2190
|
+
static get SandyBrown(): IMagickColor;
|
|
2191
|
+
static get SeaGreen(): IMagickColor;
|
|
2192
|
+
static get SeaShell(): IMagickColor;
|
|
2193
|
+
static get Sienna(): IMagickColor;
|
|
2194
|
+
static get Silver(): IMagickColor;
|
|
2195
|
+
static get SkyBlue(): IMagickColor;
|
|
2196
|
+
static get SlateBlue(): IMagickColor;
|
|
2197
|
+
static get SlateGray(): IMagickColor;
|
|
2198
|
+
static get Snow(): IMagickColor;
|
|
2199
|
+
static get SpringGreen(): IMagickColor;
|
|
2200
|
+
static get SteelBlue(): IMagickColor;
|
|
2201
|
+
static get Tan(): IMagickColor;
|
|
2202
|
+
static get Teal(): IMagickColor;
|
|
2203
|
+
static get Thistle(): IMagickColor;
|
|
2204
|
+
static get Tomato(): IMagickColor;
|
|
2205
|
+
static get Turquoise(): IMagickColor;
|
|
2206
|
+
static get Violet(): IMagickColor;
|
|
2207
|
+
static get Wheat(): IMagickColor;
|
|
2208
|
+
static get White(): IMagickColor;
|
|
2209
|
+
static get WhiteSmoke(): IMagickColor;
|
|
2210
|
+
static get Yellow(): IMagickColor;
|
|
2211
|
+
static get YellowGreen(): IMagickColor;
|
|
2212
|
+
}
|
|
2213
|
+
export interface IMagickFormatInfo {
|
|
2214
|
+
readonly description: string;
|
|
2215
|
+
readonly format: MagickFormat;
|
|
2216
|
+
readonly supportsMultipleFrames: boolean;
|
|
2217
|
+
readonly supportsReading: boolean;
|
|
2218
|
+
readonly supportsWriting: boolean;
|
|
1954
2219
|
}
|
|
1955
2220
|
export declare class Magick {
|
|
1956
|
-
private static _logDelegate?;
|
|
1957
2221
|
static get delegates(): string;
|
|
1958
2222
|
static get features(): string;
|
|
1959
2223
|
static get imageMagickVersion(): string;
|
|
1960
|
-
static get supportedFormats(): ReadonlyArray<
|
|
2224
|
+
static get supportedFormats(): ReadonlyArray<IMagickFormatInfo>;
|
|
1961
2225
|
static onLog?: (event: LogEvent) => void;
|
|
1962
2226
|
static addFont(name: string, data: Uint8Array): void;
|
|
1963
2227
|
static setRandomSeed: (seed: number) => void;
|
|
1964
2228
|
static setLogEvents(eventTypes: LogEventTypes): void;
|
|
1965
|
-
private static logDelegate;
|
|
1966
2229
|
private static getEventTypeString;
|
|
2230
|
+
private static logDelegate;
|
|
1967
2231
|
}
|
|
1968
2232
|
export declare class Quantum {
|
|
1969
2233
|
static get depth(): number;
|
|
1970
2234
|
static get max(): number;
|
|
1971
2235
|
}
|
|
1972
|
-
export declare class DrawingSettings {
|
|
1973
|
-
backgroundColor?: MagickColor;
|
|
1974
|
-
fillColor?: MagickColor;
|
|
1975
|
-
font?: string;
|
|
1976
|
-
fontPointsize?: number;
|
|
1977
|
-
strokeColor?: MagickColor;
|
|
1978
|
-
strokeWidth?: number;
|
|
1979
|
-
}
|
|
1980
2236
|
|
|
1981
2237
|
export {};
|