@imagemagick/magick-wasm 0.0.28 → 0.0.29
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 +15 -17
- package/README.md +1 -1
- package/dist/index.d.ts +597 -503
- package/dist/index.js +1888 -1578
- package/dist/index.umd.cjs +5 -5
- package/dist/magick.wasm +0 -0
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.
|
|
1
|
+
// Generated by dts-bundle-generator v9.3.1
|
|
2
2
|
|
|
3
3
|
export type ByteArray = Int8Array | Uint8Array | Uint8ClampedArray;
|
|
4
4
|
export interface IConfigurationFile {
|
|
@@ -25,7 +25,7 @@ export declare enum MagickFormat {
|
|
|
25
25
|
A = "A",
|
|
26
26
|
Aai = "AAI",
|
|
27
27
|
Ai = "AI",
|
|
28
|
-
|
|
28
|
+
APng = "APNG",
|
|
29
29
|
Art = "ART",
|
|
30
30
|
Arw = "ARW",
|
|
31
31
|
Ashlar = "ASHLAR",
|
|
@@ -84,14 +84,15 @@ export declare enum MagickFormat {
|
|
|
84
84
|
Farbfeld = "FARBFELD",
|
|
85
85
|
Fax = "FAX",
|
|
86
86
|
Ff = "FF",
|
|
87
|
+
Fff = "FFF",
|
|
87
88
|
File = "FILE",
|
|
88
89
|
Fits = "FITS",
|
|
89
90
|
Fl32 = "FL32",
|
|
90
91
|
Flv = "FLV",
|
|
91
92
|
Fractal = "FRACTAL",
|
|
92
93
|
Ftp = "FTP",
|
|
93
|
-
Ftxt = "FTXT",
|
|
94
94
|
Fts = "FTS",
|
|
95
|
+
Ftxt = "FTXT",
|
|
95
96
|
G = "G",
|
|
96
97
|
G3 = "G3",
|
|
97
98
|
G4 = "G4",
|
|
@@ -146,12 +147,14 @@ export declare enum MagickFormat {
|
|
|
146
147
|
Mask = "MASK",
|
|
147
148
|
Mat = "MAT",
|
|
148
149
|
Matte = "MATTE",
|
|
150
|
+
Mdc = "MDC",
|
|
149
151
|
Mef = "MEF",
|
|
150
152
|
Miff = "MIFF",
|
|
151
153
|
Mkv = "MKV",
|
|
152
154
|
Mng = "MNG",
|
|
153
155
|
Mono = "MONO",
|
|
154
156
|
Mov = "MOV",
|
|
157
|
+
Mos = "MOS",
|
|
155
158
|
Mp4 = "MP4",
|
|
156
159
|
Mpc = "MPC",
|
|
157
160
|
Mpeg = "MPEG",
|
|
@@ -229,6 +232,7 @@ export declare enum MagickFormat {
|
|
|
229
232
|
Rle = "RLE",
|
|
230
233
|
Rmf = "RMF",
|
|
231
234
|
Rw2 = "RW2",
|
|
235
|
+
Rwl = "RWL",
|
|
232
236
|
Scr = "SCR",
|
|
233
237
|
Screenshot = "SCREENSHOT",
|
|
234
238
|
Sct = "SCT",
|
|
@@ -240,7 +244,9 @@ export declare enum MagickFormat {
|
|
|
240
244
|
SparseColor = "SPARSE-COLOR",
|
|
241
245
|
Sr2 = "SR2",
|
|
242
246
|
Srf = "SRF",
|
|
247
|
+
Srw = "SRW",
|
|
243
248
|
Stegano = "STEGANO",
|
|
249
|
+
Sti = "STI",
|
|
244
250
|
StrImg = "STRIMG",
|
|
245
251
|
Sun = "SUN",
|
|
246
252
|
Svg = "SVG",
|
|
@@ -248,6 +254,7 @@ export declare enum MagickFormat {
|
|
|
248
254
|
Text = "TEXT",
|
|
249
255
|
Tga = "TGA",
|
|
250
256
|
Thumbnail = "THUMBNAIL",
|
|
257
|
+
Tif = "TIF",
|
|
251
258
|
Tiff = "TIFF",
|
|
252
259
|
Tiff64 = "TIFF64",
|
|
253
260
|
Tile = "TILE",
|
|
@@ -266,9 +273,9 @@ export declare enum MagickFormat {
|
|
|
266
273
|
Viff = "VIFF",
|
|
267
274
|
Vips = "VIPS",
|
|
268
275
|
Vst = "VST",
|
|
276
|
+
WebM = "WEBM",
|
|
277
|
+
WebP = "WEBP",
|
|
269
278
|
Wbmp = "WBMP",
|
|
270
|
-
Webp = "WEBP",
|
|
271
|
-
Webm = "WEBM",
|
|
272
279
|
Wmv = "WMV",
|
|
273
280
|
Wpg = "WPG",
|
|
274
281
|
X3f = "X3F",
|
|
@@ -515,8 +522,8 @@ export declare class DrawableTextAlignment implements IDrawable {
|
|
|
515
522
|
export declare class DrawableTextAntialias implements IDrawable {
|
|
516
523
|
private readonly _isEnabled;
|
|
517
524
|
private constructor();
|
|
518
|
-
static get
|
|
519
|
-
static get
|
|
525
|
+
static get disabled(): DrawableTextAntialias;
|
|
526
|
+
static get enabled(): DrawableTextAntialias;
|
|
520
527
|
draw(wand: IDrawingWand): void;
|
|
521
528
|
}
|
|
522
529
|
export declare class DrawableTextDecoration implements IDrawable {
|
|
@@ -567,7 +574,8 @@ declare enum AlphaOption$1 {
|
|
|
567
574
|
Remove = 12,
|
|
568
575
|
Set = 13,
|
|
569
576
|
Shape = 14,
|
|
570
|
-
Transparent = 15
|
|
577
|
+
Transparent = 15,
|
|
578
|
+
OffIfOpaque = 16
|
|
571
579
|
}
|
|
572
580
|
export declare enum AutoThresholdMethod {
|
|
573
581
|
Undefined = 0,
|
|
@@ -648,6 +656,19 @@ export declare enum Channels {
|
|
|
648
656
|
Meta52 = 1073741824,
|
|
649
657
|
All = 134217727
|
|
650
658
|
}
|
|
659
|
+
export declare class PrimaryInfo {
|
|
660
|
+
constructor(x: number, y: number, z: number);
|
|
661
|
+
readonly x: number;
|
|
662
|
+
readonly y: number;
|
|
663
|
+
readonly z: number;
|
|
664
|
+
}
|
|
665
|
+
export declare class ChromaticityInfo {
|
|
666
|
+
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
667
|
+
readonly red: PrimaryInfo;
|
|
668
|
+
readonly green: PrimaryInfo;
|
|
669
|
+
readonly blue: PrimaryInfo;
|
|
670
|
+
readonly white: PrimaryInfo;
|
|
671
|
+
}
|
|
651
672
|
export declare enum ClassType {
|
|
652
673
|
Undefined = 0,
|
|
653
674
|
Direct = 1,
|
|
@@ -817,11 +838,114 @@ export declare enum CompressionMethod {
|
|
|
817
838
|
BC7 = 26,
|
|
818
839
|
BC5 = 27
|
|
819
840
|
}
|
|
841
|
+
export interface IMagickGeometry {
|
|
842
|
+
readonly aspectRatio: boolean;
|
|
843
|
+
fillArea: boolean;
|
|
844
|
+
greater: boolean;
|
|
845
|
+
height: number;
|
|
846
|
+
ignoreAspectRatio: boolean;
|
|
847
|
+
isPercentage: boolean;
|
|
848
|
+
less: boolean;
|
|
849
|
+
limitPixels: boolean;
|
|
850
|
+
width: number;
|
|
851
|
+
x: number;
|
|
852
|
+
y: number;
|
|
853
|
+
}
|
|
854
|
+
export declare class MagickGeometry implements IMagickGeometry {
|
|
855
|
+
private _width;
|
|
856
|
+
private _height;
|
|
857
|
+
private _x;
|
|
858
|
+
private _y;
|
|
859
|
+
private _aspectRatio;
|
|
860
|
+
private _fillArea;
|
|
861
|
+
private _greater;
|
|
862
|
+
private _isPercentage;
|
|
863
|
+
private _ignoreAspectRatio;
|
|
864
|
+
private _less;
|
|
865
|
+
private _limitPixels;
|
|
866
|
+
constructor(value: string);
|
|
867
|
+
constructor(widthAndHeight: number);
|
|
868
|
+
constructor(width: number, height: number);
|
|
869
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
870
|
+
get aspectRatio(): boolean;
|
|
871
|
+
get fillArea(): boolean;
|
|
872
|
+
set fillArea(value: boolean);
|
|
873
|
+
get greater(): boolean;
|
|
874
|
+
set greater(value: boolean);
|
|
875
|
+
get height(): number;
|
|
876
|
+
set height(value: number);
|
|
877
|
+
get ignoreAspectRatio(): boolean;
|
|
878
|
+
set ignoreAspectRatio(value: boolean);
|
|
879
|
+
get isPercentage(): boolean;
|
|
880
|
+
set isPercentage(value: boolean);
|
|
881
|
+
get less(): boolean;
|
|
882
|
+
set less(value: boolean);
|
|
883
|
+
get limitPixels(): boolean;
|
|
884
|
+
set limitPixels(value: boolean);
|
|
885
|
+
get width(): number;
|
|
886
|
+
set width(value: number);
|
|
887
|
+
get x(): number;
|
|
888
|
+
set x(value: number);
|
|
889
|
+
get y(): number;
|
|
890
|
+
set y(value: number);
|
|
891
|
+
toString(): string;
|
|
892
|
+
private initialize;
|
|
893
|
+
private initializeFromAspectRation;
|
|
894
|
+
private parseNumber;
|
|
895
|
+
private isNumber;
|
|
896
|
+
private hasFlag;
|
|
897
|
+
}
|
|
898
|
+
export declare class Point {
|
|
899
|
+
constructor(xy: number);
|
|
900
|
+
constructor(x: number, y: number);
|
|
901
|
+
readonly x: number;
|
|
902
|
+
readonly y: number;
|
|
903
|
+
}
|
|
904
|
+
export declare class ConnectedComponent {
|
|
905
|
+
private constructor();
|
|
906
|
+
readonly area: number;
|
|
907
|
+
readonly centroid: Point;
|
|
908
|
+
readonly color?: IMagickColor;
|
|
909
|
+
readonly height: number;
|
|
910
|
+
readonly id: number;
|
|
911
|
+
readonly width: number;
|
|
912
|
+
readonly x: number;
|
|
913
|
+
readonly y: number;
|
|
914
|
+
toGeometry(): IMagickGeometry;
|
|
915
|
+
}
|
|
916
|
+
export declare class Threshold {
|
|
917
|
+
constructor(minimum: number, maximum?: number);
|
|
918
|
+
readonly minimum: number;
|
|
919
|
+
readonly maximum: number;
|
|
920
|
+
toString(): string;
|
|
921
|
+
}
|
|
922
|
+
export type Connectivity = 4 | 8;
|
|
923
|
+
export declare class ConnectedComponentsSettings {
|
|
924
|
+
angleThreshold?: Threshold;
|
|
925
|
+
areaThreshold?: Threshold;
|
|
926
|
+
circularityThreshold?: Threshold;
|
|
927
|
+
connectivity: Connectivity;
|
|
928
|
+
diameterThreshold?: Threshold;
|
|
929
|
+
eccentricityThreshold?: Threshold;
|
|
930
|
+
majorAxisThreshold?: Threshold;
|
|
931
|
+
meanColor?: boolean;
|
|
932
|
+
minorAxisThreshold?: Threshold;
|
|
933
|
+
perimeterThreshold?: Threshold;
|
|
934
|
+
constructor(connectivity: Connectivity);
|
|
935
|
+
}
|
|
820
936
|
export declare enum DensityUnit {
|
|
821
937
|
Undefined = 0,
|
|
822
938
|
PixelsPerInch = 1,
|
|
823
939
|
PixelsPerCentimeter = 2
|
|
824
940
|
}
|
|
941
|
+
export declare class Density {
|
|
942
|
+
constructor(xy: number);
|
|
943
|
+
constructor(xy: number, unit: DensityUnit);
|
|
944
|
+
constructor(x: number, y: number, units: DensityUnit);
|
|
945
|
+
readonly x: number;
|
|
946
|
+
readonly y: number;
|
|
947
|
+
readonly units: DensityUnit;
|
|
948
|
+
}
|
|
825
949
|
export declare enum DistortMethod {
|
|
826
950
|
Undefined = 0,
|
|
827
951
|
Affine = 1,
|
|
@@ -844,11 +968,12 @@ export declare enum DistortMethod {
|
|
|
844
968
|
Sentinel = 18,
|
|
845
969
|
RigidAffine = 19
|
|
846
970
|
}
|
|
847
|
-
export declare
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
971
|
+
export declare class DistortSettings {
|
|
972
|
+
constructor(method: DistortMethod);
|
|
973
|
+
readonly method: DistortMethod;
|
|
974
|
+
bestFit: boolean;
|
|
975
|
+
scale?: number;
|
|
976
|
+
viewport?: IMagickGeometry;
|
|
852
977
|
}
|
|
853
978
|
export declare enum Endian {
|
|
854
979
|
Undefined = 0,
|
|
@@ -946,6 +1071,15 @@ export declare enum GifDisposeMethod {
|
|
|
946
1071
|
Background = 2,
|
|
947
1072
|
Previous = 3
|
|
948
1073
|
}
|
|
1074
|
+
export interface IImageProfile {
|
|
1075
|
+
readonly name: string;
|
|
1076
|
+
readonly data: Uint8Array;
|
|
1077
|
+
}
|
|
1078
|
+
export declare class ImageProfile implements IImageProfile {
|
|
1079
|
+
constructor(name: string, data: Uint8Array);
|
|
1080
|
+
readonly name: string;
|
|
1081
|
+
readonly data: Uint8Array;
|
|
1082
|
+
}
|
|
949
1083
|
export declare enum Interlace {
|
|
950
1084
|
Undefined = 0,
|
|
951
1085
|
NoInterlace = 1,
|
|
@@ -956,6 +1090,121 @@ export declare enum Interlace {
|
|
|
956
1090
|
Jpeg = 6,
|
|
957
1091
|
Png = 7
|
|
958
1092
|
}
|
|
1093
|
+
export declare class MagickSettings {
|
|
1094
|
+
antiAlias?: boolean;
|
|
1095
|
+
backgroundColor?: IMagickColor;
|
|
1096
|
+
colorSpace?: ColorSpace;
|
|
1097
|
+
colorType?: ColorType;
|
|
1098
|
+
compression?: CompressionMethod;
|
|
1099
|
+
debug?: boolean;
|
|
1100
|
+
depth?: number;
|
|
1101
|
+
endian?: Endian;
|
|
1102
|
+
fillColor?: IMagickColor;
|
|
1103
|
+
font?: string;
|
|
1104
|
+
fontPointsize?: number;
|
|
1105
|
+
format?: MagickFormat;
|
|
1106
|
+
interlace?: Interlace;
|
|
1107
|
+
strokeColor?: IMagickColor;
|
|
1108
|
+
strokeWidth?: number;
|
|
1109
|
+
textInterlineSpacing?: number;
|
|
1110
|
+
textKerning?: number;
|
|
1111
|
+
getDefine(name: string): string;
|
|
1112
|
+
getDefine(format: MagickFormat, name: string): string;
|
|
1113
|
+
setDefine(name: string, value: string): void;
|
|
1114
|
+
setDefine(format: MagickFormat, name: string, value: string): void;
|
|
1115
|
+
setDefine(format: MagickFormat, name: string, value: number): void;
|
|
1116
|
+
setDefine(format: MagickFormat, name: string, value: boolean): void;
|
|
1117
|
+
setDefines(defines: IDefines): void;
|
|
1118
|
+
private parseDefine;
|
|
1119
|
+
}
|
|
1120
|
+
export declare class MagickReadSettings extends MagickSettings {
|
|
1121
|
+
constructor(partialSettings?: Partial<MagickReadSettings>);
|
|
1122
|
+
height?: number;
|
|
1123
|
+
width?: number;
|
|
1124
|
+
private getSize;
|
|
1125
|
+
}
|
|
1126
|
+
export declare class MontageSettings {
|
|
1127
|
+
backgroundColor?: IMagickColor;
|
|
1128
|
+
borderColor?: IMagickColor;
|
|
1129
|
+
borderWidth?: number;
|
|
1130
|
+
fillColor?: IMagickColor;
|
|
1131
|
+
font?: string;
|
|
1132
|
+
fontPointsize?: number;
|
|
1133
|
+
frameGeometry?: IMagickGeometry;
|
|
1134
|
+
geometry?: IMagickGeometry;
|
|
1135
|
+
gravity?: Gravity;
|
|
1136
|
+
label?: string;
|
|
1137
|
+
shadow?: boolean;
|
|
1138
|
+
strokeColor?: IMagickColor;
|
|
1139
|
+
textureFileName?: string;
|
|
1140
|
+
tileGeometry?: IMagickGeometry;
|
|
1141
|
+
title?: string;
|
|
1142
|
+
transparentColor?: IMagickColor;
|
|
1143
|
+
}
|
|
1144
|
+
export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable {
|
|
1145
|
+
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1146
|
+
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1147
|
+
appendVertically<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1148
|
+
appendVertically<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1149
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1150
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1151
|
+
coalesce(): void;
|
|
1152
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1153
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1154
|
+
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1155
|
+
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1156
|
+
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1157
|
+
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1158
|
+
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1159
|
+
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1160
|
+
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1161
|
+
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1162
|
+
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1163
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1164
|
+
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1165
|
+
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1166
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1167
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1168
|
+
}
|
|
1169
|
+
export declare class MagickImageCollection extends Array<MagickImage> implements IMagickImageCollection {
|
|
1170
|
+
private constructor();
|
|
1171
|
+
static create(): IMagickImageCollection;
|
|
1172
|
+
static create(array: ByteArray): IMagickImageCollection;
|
|
1173
|
+
dispose(): void;
|
|
1174
|
+
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1175
|
+
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1176
|
+
appendVertically<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1177
|
+
appendVertically<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1178
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1179
|
+
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1180
|
+
coalesce(): void;
|
|
1181
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1182
|
+
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1183
|
+
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1184
|
+
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1185
|
+
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1186
|
+
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1187
|
+
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1188
|
+
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1189
|
+
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1190
|
+
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1191
|
+
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1192
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1193
|
+
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1194
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1195
|
+
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1196
|
+
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1197
|
+
private addImages;
|
|
1198
|
+
private attachImages;
|
|
1199
|
+
private static createObject;
|
|
1200
|
+
private createImage;
|
|
1201
|
+
private static createSettings;
|
|
1202
|
+
private detachImages;
|
|
1203
|
+
private getSettings;
|
|
1204
|
+
private mergeImages;
|
|
1205
|
+
private throwIfEmpty;
|
|
1206
|
+
private checkResult;
|
|
1207
|
+
}
|
|
959
1208
|
export declare enum Kernel {
|
|
960
1209
|
Undefined = "Undefined",
|
|
961
1210
|
Unity = "Unity",
|
|
@@ -996,78 +1245,6 @@ export declare enum Kernel {
|
|
|
996
1245
|
Euclidean = "Euclidean",
|
|
997
1246
|
UserDefined = "UserDefined"
|
|
998
1247
|
}
|
|
999
|
-
export declare enum LogEventTypes {
|
|
1000
|
-
None = 0,
|
|
1001
|
-
Accelerate = 1,
|
|
1002
|
-
Annotate = 2,
|
|
1003
|
-
Blob = 4,
|
|
1004
|
-
Cache = 8,
|
|
1005
|
-
Coder = 16,
|
|
1006
|
-
Configure = 32,
|
|
1007
|
-
Deprecate = 64,
|
|
1008
|
-
Draw = 128,
|
|
1009
|
-
Exception = 256,
|
|
1010
|
-
Image = 512,
|
|
1011
|
-
Locale = 1024,
|
|
1012
|
-
Module = 2048,
|
|
1013
|
-
Pixel = 4096,
|
|
1014
|
-
Policy = 8192,
|
|
1015
|
-
Resource = 16384,
|
|
1016
|
-
Trace = 32768,
|
|
1017
|
-
Transform = 65536,
|
|
1018
|
-
User = 131072,
|
|
1019
|
-
Wand = 262144,
|
|
1020
|
-
Detailed = 2147450879,
|
|
1021
|
-
All = 2147483647
|
|
1022
|
-
}
|
|
1023
|
-
export declare enum MagickErrorSeverity {
|
|
1024
|
-
Warning = 300,
|
|
1025
|
-
ResourceLimitWarning = 300,
|
|
1026
|
-
TypeWarning = 305,
|
|
1027
|
-
OptionWarning = 310,
|
|
1028
|
-
DelegateWarning = 315,
|
|
1029
|
-
MissingDelegateWarning = 320,
|
|
1030
|
-
CorruptImageWarning = 325,
|
|
1031
|
-
FileOpenWarning = 330,
|
|
1032
|
-
BlobWarning = 335,
|
|
1033
|
-
StreamWarning = 340,
|
|
1034
|
-
CacheWarning = 345,
|
|
1035
|
-
CoderWarning = 350,
|
|
1036
|
-
FilterWarning = 352,
|
|
1037
|
-
ModuleWarning = 355,
|
|
1038
|
-
DrawWarning = 360,
|
|
1039
|
-
ImageWarning = 365,
|
|
1040
|
-
WandWarning = 370,
|
|
1041
|
-
RandomWarning = 375,
|
|
1042
|
-
XServerWarning = 380,
|
|
1043
|
-
MonitorWarning = 385,
|
|
1044
|
-
RegistryWarning = 390,
|
|
1045
|
-
ConfigureWarning = 395,
|
|
1046
|
-
PolicyWarning = 399,
|
|
1047
|
-
Error = 400,
|
|
1048
|
-
ResourceLimitError = 400,
|
|
1049
|
-
TypeError = 405,
|
|
1050
|
-
OptionError = 410,
|
|
1051
|
-
DelegateError = 415,
|
|
1052
|
-
MissingDelegateError = 420,
|
|
1053
|
-
CorruptImageError = 425,
|
|
1054
|
-
FileOpenError = 430,
|
|
1055
|
-
BlobError = 435,
|
|
1056
|
-
StreamError = 440,
|
|
1057
|
-
CacheError = 445,
|
|
1058
|
-
CoderError = 450,
|
|
1059
|
-
FilterError = 452,
|
|
1060
|
-
ModuleError = 455,
|
|
1061
|
-
DrawError = 460,
|
|
1062
|
-
ImageError = 465,
|
|
1063
|
-
WandError = 470,
|
|
1064
|
-
RandomError = 475,
|
|
1065
|
-
XServerError = 480,
|
|
1066
|
-
MonitorError = 485,
|
|
1067
|
-
RegistryError = 490,
|
|
1068
|
-
ConfigureError = 495,
|
|
1069
|
-
PolicyError = 499
|
|
1070
|
-
}
|
|
1071
1248
|
export declare enum MorphologyMethod {
|
|
1072
1249
|
Undefined = 0,
|
|
1073
1250
|
Convolve = 1,
|
|
@@ -1093,6 +1270,15 @@ export declare enum MorphologyMethod {
|
|
|
1093
1270
|
Distance = 21,
|
|
1094
1271
|
Voronoi = 22
|
|
1095
1272
|
}
|
|
1273
|
+
export declare class MorphologySettings {
|
|
1274
|
+
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
1275
|
+
channels: Channels;
|
|
1276
|
+
convolveBias: Percentage | undefined;
|
|
1277
|
+
convolveScale: IMagickGeometry | undefined;
|
|
1278
|
+
iterations: number;
|
|
1279
|
+
readonly kernel: string;
|
|
1280
|
+
readonly method: MorphologyMethod;
|
|
1281
|
+
}
|
|
1096
1282
|
declare enum OrientationType$1 {
|
|
1097
1283
|
Undefined = 0,
|
|
1098
1284
|
TopLeft = 1,
|
|
@@ -1118,411 +1304,57 @@ export declare enum PixelChannel {
|
|
|
1118
1304
|
Meta0 = 10,
|
|
1119
1305
|
Meta1 = 11,
|
|
1120
1306
|
Meta2 = 12,
|
|
1121
|
-
Meta3 = 13,
|
|
1122
|
-
Meta4 = 14,
|
|
1123
|
-
Meta5 = 15,
|
|
1124
|
-
Meta6 = 16,
|
|
1125
|
-
Meta7 = 17,
|
|
1126
|
-
Meta8 = 18,
|
|
1127
|
-
Meta9 = 19,
|
|
1128
|
-
Meta10 = 20,
|
|
1129
|
-
Meta11 = 21,
|
|
1130
|
-
Meta12 = 22,
|
|
1131
|
-
Meta13 = 23,
|
|
1132
|
-
Meta14 = 24,
|
|
1133
|
-
Meta15 = 25,
|
|
1134
|
-
Meta16 = 26,
|
|
1135
|
-
Meta17 = 27,
|
|
1136
|
-
Meta18 = 28,
|
|
1137
|
-
Meta19 = 29,
|
|
1138
|
-
Meta20 = 30,
|
|
1139
|
-
Meta21 = 31,
|
|
1140
|
-
Meta22 = 32,
|
|
1141
|
-
Meta23 = 33,
|
|
1142
|
-
Meta24 = 34,
|
|
1143
|
-
Meta25 = 35,
|
|
1144
|
-
Meta26 = 36,
|
|
1145
|
-
Meta27 = 37,
|
|
1146
|
-
Meta28 = 38,
|
|
1147
|
-
Meta29 = 39,
|
|
1148
|
-
Meta30 = 40,
|
|
1149
|
-
Meta31 = 41,
|
|
1150
|
-
Meta32 = 42,
|
|
1151
|
-
Meta33 = 43,
|
|
1152
|
-
Meta34 = 44,
|
|
1153
|
-
Meta35 = 45,
|
|
1154
|
-
Meta36 = 46,
|
|
1155
|
-
Meta37 = 47,
|
|
1156
|
-
Meta38 = 48,
|
|
1157
|
-
Meta39 = 49,
|
|
1158
|
-
Meta40 = 50,
|
|
1159
|
-
Meta41 = 51,
|
|
1160
|
-
Meta42 = 52,
|
|
1161
|
-
Meta43 = 53,
|
|
1162
|
-
Meta44 = 54,
|
|
1163
|
-
Meta45 = 55,
|
|
1164
|
-
Meta46 = 56,
|
|
1165
|
-
Meta47 = 57,
|
|
1166
|
-
Meta48 = 58,
|
|
1167
|
-
Meta49 = 59,
|
|
1168
|
-
Meta50 = 60,
|
|
1169
|
-
Meta51 = 61,
|
|
1170
|
-
Meta52 = 62,
|
|
1171
|
-
Composite = 64
|
|
1172
|
-
}
|
|
1173
|
-
export declare enum PixelIntensityMethod {
|
|
1174
|
-
Undefined = 0,
|
|
1175
|
-
Average = 1,
|
|
1176
|
-
Brightness = 2,
|
|
1177
|
-
Lightness = 3,
|
|
1178
|
-
MS = 4,
|
|
1179
|
-
Rec601Luma = 5,
|
|
1180
|
-
Rec601Luminance = 6,
|
|
1181
|
-
Rec709Luma = 7,
|
|
1182
|
-
Rec709Luminance = 8,
|
|
1183
|
-
RMS = 9
|
|
1184
|
-
}
|
|
1185
|
-
export declare enum PixelInterpolateMethod {
|
|
1186
|
-
Undefined = 0,
|
|
1187
|
-
Average = 1,
|
|
1188
|
-
Average9 = 2,
|
|
1189
|
-
Average16 = 3,
|
|
1190
|
-
Background = 4,
|
|
1191
|
-
Bilinear = 5,
|
|
1192
|
-
Blend = 6,
|
|
1193
|
-
Catrom = 7,
|
|
1194
|
-
Integer = 8,
|
|
1195
|
-
Mesh = 9,
|
|
1196
|
-
Nearest = 10,
|
|
1197
|
-
Spline = 11
|
|
1198
|
-
}
|
|
1199
|
-
export declare enum RenderingIntent {
|
|
1200
|
-
Undefined = 0,
|
|
1201
|
-
Saturation = 1,
|
|
1202
|
-
Perceptual = 2,
|
|
1203
|
-
Absolute = 3,
|
|
1204
|
-
Relative = 4
|
|
1205
|
-
}
|
|
1206
|
-
export declare enum VirtualPixelMethod {
|
|
1207
|
-
Undefined = 0,
|
|
1208
|
-
Background = 1,
|
|
1209
|
-
Dither = 2,
|
|
1210
|
-
Edge = 3,
|
|
1211
|
-
Mirror = 4,
|
|
1212
|
-
Random = 5,
|
|
1213
|
-
Tile = 6,
|
|
1214
|
-
Transparent = 7,
|
|
1215
|
-
Mask = 8,
|
|
1216
|
-
Black = 9,
|
|
1217
|
-
Gray = 10,
|
|
1218
|
-
White = 11,
|
|
1219
|
-
HorizontalTile = 12,
|
|
1220
|
-
VerticalTile = 13,
|
|
1221
|
-
HorizontalTileEdge = 14,
|
|
1222
|
-
VerticalTileEdge = 15,
|
|
1223
|
-
CheckerTile = 16
|
|
1224
|
-
}
|
|
1225
|
-
export declare class LogEvent {
|
|
1226
|
-
constructor(eventType: LogEventTypes, message?: string);
|
|
1227
|
-
readonly eventType: LogEventTypes;
|
|
1228
|
-
readonly message: string;
|
|
1229
|
-
}
|
|
1230
|
-
declare class ProgressEvent$1 {
|
|
1231
|
-
readonly origin: string | null;
|
|
1232
|
-
readonly progress: Percentage;
|
|
1233
|
-
cancel: boolean;
|
|
1234
|
-
}
|
|
1235
|
-
export declare class MagickError extends Error {
|
|
1236
|
-
private _relatedErrors;
|
|
1237
|
-
readonly severity: MagickErrorSeverity;
|
|
1238
|
-
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1239
|
-
}
|
|
1240
|
-
export declare class WarningEvent {
|
|
1241
|
-
readonly error: MagickError;
|
|
1242
|
-
}
|
|
1243
|
-
export declare enum DngInterpolation {
|
|
1244
|
-
Disabled = -1,
|
|
1245
|
-
Linear = 0,
|
|
1246
|
-
Vng = 1,
|
|
1247
|
-
Ppg = 2,
|
|
1248
|
-
Ahd = 3,
|
|
1249
|
-
DCB = 4,
|
|
1250
|
-
Dht = 11,
|
|
1251
|
-
ModifiedAhd = 12
|
|
1252
|
-
}
|
|
1253
|
-
export declare enum DngOutputColor {
|
|
1254
|
-
Raw = 0,
|
|
1255
|
-
SRGB = 1,
|
|
1256
|
-
AdobeRGB = 2,
|
|
1257
|
-
WideGamutRGB = 3,
|
|
1258
|
-
KodakProPhotoRGB = 4,
|
|
1259
|
-
XYZ = 5,
|
|
1260
|
-
ACES = 6
|
|
1261
|
-
}
|
|
1262
|
-
export declare class DngReadDefines extends DefinesCreator {
|
|
1263
|
-
constructor();
|
|
1264
|
-
disableAutoBrightness?: boolean;
|
|
1265
|
-
interpolationQuality?: DngInterpolation;
|
|
1266
|
-
outputColor?: DngOutputColor;
|
|
1267
|
-
useAutoWhitebalance?: boolean;
|
|
1268
|
-
useCameraWhitebalance?: boolean;
|
|
1269
|
-
getDefines(): IDefine[];
|
|
1270
|
-
}
|
|
1271
|
-
export declare class PrimaryInfo {
|
|
1272
|
-
constructor(x: number, y: number, z: number);
|
|
1273
|
-
readonly x: number;
|
|
1274
|
-
readonly y: number;
|
|
1275
|
-
readonly z: number;
|
|
1276
|
-
}
|
|
1277
|
-
export declare class ChromaticityInfo {
|
|
1278
|
-
constructor(red: PrimaryInfo, green: PrimaryInfo, blue: PrimaryInfo, white: PrimaryInfo);
|
|
1279
|
-
readonly red: PrimaryInfo;
|
|
1280
|
-
readonly green: PrimaryInfo;
|
|
1281
|
-
readonly blue: PrimaryInfo;
|
|
1282
|
-
readonly white: PrimaryInfo;
|
|
1283
|
-
}
|
|
1284
|
-
export interface IMagickGeometry {
|
|
1285
|
-
readonly aspectRatio: boolean;
|
|
1286
|
-
fillArea: boolean;
|
|
1287
|
-
greater: boolean;
|
|
1288
|
-
height: number;
|
|
1289
|
-
ignoreAspectRatio: boolean;
|
|
1290
|
-
isPercentage: boolean;
|
|
1291
|
-
less: boolean;
|
|
1292
|
-
limitPixels: boolean;
|
|
1293
|
-
width: number;
|
|
1294
|
-
x: number;
|
|
1295
|
-
y: number;
|
|
1296
|
-
}
|
|
1297
|
-
export declare class MagickGeometry implements IMagickGeometry {
|
|
1298
|
-
private _width;
|
|
1299
|
-
private _height;
|
|
1300
|
-
private _x;
|
|
1301
|
-
private _y;
|
|
1302
|
-
private _aspectRatio;
|
|
1303
|
-
private _fillArea;
|
|
1304
|
-
private _greater;
|
|
1305
|
-
private _isPercentage;
|
|
1306
|
-
private _ignoreAspectRatio;
|
|
1307
|
-
private _less;
|
|
1308
|
-
private _limitPixels;
|
|
1309
|
-
constructor(value: string);
|
|
1310
|
-
constructor(widthAndHeight: number);
|
|
1311
|
-
constructor(width: number, height: number);
|
|
1312
|
-
constructor(x: number, y: number, width: number, height: number);
|
|
1313
|
-
get aspectRatio(): boolean;
|
|
1314
|
-
get fillArea(): boolean;
|
|
1315
|
-
set fillArea(value: boolean);
|
|
1316
|
-
get greater(): boolean;
|
|
1317
|
-
set greater(value: boolean);
|
|
1318
|
-
get height(): number;
|
|
1319
|
-
set height(value: number);
|
|
1320
|
-
get ignoreAspectRatio(): boolean;
|
|
1321
|
-
set ignoreAspectRatio(value: boolean);
|
|
1322
|
-
get isPercentage(): boolean;
|
|
1323
|
-
set isPercentage(value: boolean);
|
|
1324
|
-
get less(): boolean;
|
|
1325
|
-
set less(value: boolean);
|
|
1326
|
-
get limitPixels(): boolean;
|
|
1327
|
-
set limitPixels(value: boolean);
|
|
1328
|
-
get width(): number;
|
|
1329
|
-
set width(value: number);
|
|
1330
|
-
get x(): number;
|
|
1331
|
-
set x(value: number);
|
|
1332
|
-
get y(): number;
|
|
1333
|
-
set y(value: number);
|
|
1334
|
-
toString(): string;
|
|
1335
|
-
private initialize;
|
|
1336
|
-
private initializeFromAspectRation;
|
|
1337
|
-
private parseNumber;
|
|
1338
|
-
private isNumber;
|
|
1339
|
-
private hasFlag;
|
|
1340
|
-
}
|
|
1341
|
-
export declare class Point {
|
|
1342
|
-
constructor(xy: number);
|
|
1343
|
-
constructor(x: number, y: number);
|
|
1344
|
-
readonly x: number;
|
|
1345
|
-
readonly y: number;
|
|
1346
|
-
}
|
|
1347
|
-
export declare class ConnectedComponent {
|
|
1348
|
-
private constructor();
|
|
1349
|
-
readonly area: number;
|
|
1350
|
-
readonly centroid: Point;
|
|
1351
|
-
readonly color?: IMagickColor;
|
|
1352
|
-
readonly height: number;
|
|
1353
|
-
readonly id: number;
|
|
1354
|
-
readonly width: number;
|
|
1355
|
-
readonly x: number;
|
|
1356
|
-
readonly y: number;
|
|
1357
|
-
toGeometry(): IMagickGeometry;
|
|
1358
|
-
}
|
|
1359
|
-
export declare class Threshold {
|
|
1360
|
-
constructor(minimum: number, maximum?: number);
|
|
1361
|
-
readonly minimum: number;
|
|
1362
|
-
readonly maximum: number;
|
|
1363
|
-
toString(): string;
|
|
1364
|
-
}
|
|
1365
|
-
export type Connectivity = 4 | 8;
|
|
1366
|
-
export declare class ConnectedComponentsSettings {
|
|
1367
|
-
angleThreshold?: Threshold;
|
|
1368
|
-
areaThreshold?: Threshold;
|
|
1369
|
-
circularityThreshold?: Threshold;
|
|
1370
|
-
connectivity: Connectivity;
|
|
1371
|
-
diameterThreshold?: Threshold;
|
|
1372
|
-
eccentricityThreshold?: Threshold;
|
|
1373
|
-
majorAxisThreshold?: Threshold;
|
|
1374
|
-
meanColor?: boolean;
|
|
1375
|
-
minorAxisThreshold?: Threshold;
|
|
1376
|
-
perimeterThreshold?: Threshold;
|
|
1377
|
-
constructor(connectivity: Connectivity);
|
|
1378
|
-
}
|
|
1379
|
-
export declare class Density {
|
|
1380
|
-
constructor(xy: number);
|
|
1381
|
-
constructor(xy: number, unit: DensityUnit);
|
|
1382
|
-
constructor(x: number, y: number, units: DensityUnit);
|
|
1383
|
-
readonly x: number;
|
|
1384
|
-
readonly y: number;
|
|
1385
|
-
readonly units: DensityUnit;
|
|
1386
|
-
}
|
|
1387
|
-
export declare class DistortSettings {
|
|
1388
|
-
constructor(method: DistortMethod);
|
|
1389
|
-
readonly method: DistortMethod;
|
|
1390
|
-
bestFit: boolean;
|
|
1391
|
-
scale?: number;
|
|
1392
|
-
viewport?: IMagickGeometry;
|
|
1393
|
-
}
|
|
1394
|
-
export interface IImageProfile {
|
|
1395
|
-
readonly name: string;
|
|
1396
|
-
readonly data: Uint8Array;
|
|
1397
|
-
}
|
|
1398
|
-
export declare class ImageProfile implements IImageProfile {
|
|
1399
|
-
constructor(name: string, data: Uint8Array);
|
|
1400
|
-
readonly name: string;
|
|
1401
|
-
readonly data: Uint8Array;
|
|
1402
|
-
}
|
|
1403
|
-
export declare class MagickSettings {
|
|
1404
|
-
antiAlias?: boolean;
|
|
1405
|
-
backgroundColor?: IMagickColor;
|
|
1406
|
-
colorSpace?: ColorSpace;
|
|
1407
|
-
colorType?: ColorType;
|
|
1408
|
-
compression?: CompressionMethod;
|
|
1409
|
-
debug?: boolean;
|
|
1410
|
-
depth?: number;
|
|
1411
|
-
endian?: Endian;
|
|
1412
|
-
fillColor?: IMagickColor;
|
|
1413
|
-
font?: string;
|
|
1414
|
-
fontPointsize?: number;
|
|
1415
|
-
format?: MagickFormat;
|
|
1416
|
-
interlace?: Interlace;
|
|
1417
|
-
strokeColor?: IMagickColor;
|
|
1418
|
-
strokeWidth?: number;
|
|
1419
|
-
textInterlineSpacing?: number;
|
|
1420
|
-
textKerning?: number;
|
|
1421
|
-
getDefine(name: string): string;
|
|
1422
|
-
getDefine(format: MagickFormat, name: string): string;
|
|
1423
|
-
setDefine(name: string, value: string): void;
|
|
1424
|
-
setDefine(format: MagickFormat, name: string, value: string): void;
|
|
1425
|
-
setDefine(format: MagickFormat, name: string, value: number): void;
|
|
1426
|
-
setDefine(format: MagickFormat, name: string, value: boolean): void;
|
|
1427
|
-
setDefines(defines: IDefines): void;
|
|
1428
|
-
private parseDefine;
|
|
1429
|
-
}
|
|
1430
|
-
export declare class MagickReadSettings extends MagickSettings {
|
|
1431
|
-
constructor(partialSettings?: Partial<MagickReadSettings>);
|
|
1432
|
-
height?: number;
|
|
1433
|
-
width?: number;
|
|
1434
|
-
private getSize;
|
|
1435
|
-
}
|
|
1436
|
-
export declare class MontageSettings {
|
|
1437
|
-
backgroundColor?: IMagickColor;
|
|
1438
|
-
borderColor?: IMagickColor;
|
|
1439
|
-
borderWidth?: number;
|
|
1440
|
-
fillColor?: IMagickColor;
|
|
1441
|
-
font?: string;
|
|
1442
|
-
fontPointsize?: number;
|
|
1443
|
-
frameGeometry?: IMagickGeometry;
|
|
1444
|
-
geometry?: IMagickGeometry;
|
|
1445
|
-
gravity?: Gravity;
|
|
1446
|
-
label?: string;
|
|
1447
|
-
shadow?: boolean;
|
|
1448
|
-
strokeColor?: IMagickColor;
|
|
1449
|
-
textureFileName?: string;
|
|
1450
|
-
tileGeometry?: IMagickGeometry;
|
|
1451
|
-
title?: string;
|
|
1452
|
-
transparentColor?: IMagickColor;
|
|
1453
|
-
}
|
|
1454
|
-
export interface IMagickImageCollection extends Array<IMagickImage>, IDisposable {
|
|
1455
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1456
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1457
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1458
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1459
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1460
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1461
|
-
coalesce(): void;
|
|
1462
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1463
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1464
|
-
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1465
|
-
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1466
|
-
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1467
|
-
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1468
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1469
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1470
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1471
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1472
|
-
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1473
|
-
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1474
|
-
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1475
|
-
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1476
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1477
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1478
|
-
}
|
|
1479
|
-
export declare class MagickImageCollection extends Array<MagickImage> implements IMagickImageCollection {
|
|
1480
|
-
private constructor();
|
|
1481
|
-
static create(): IMagickImageCollection;
|
|
1482
|
-
static create(array: ByteArray): IMagickImageCollection;
|
|
1483
|
-
dispose(): void;
|
|
1484
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1485
|
-
appendHorizontally<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1486
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1487
|
-
appendVertically<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1488
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => TReturnType): TReturnType;
|
|
1489
|
-
clone<TReturnType>(func: (images: IMagickImageCollection) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1490
|
-
coalesce(): void;
|
|
1491
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1492
|
-
evaluate<TReturnType>(evaluateOperator: EvaluateOperator, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1493
|
-
flatten<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1494
|
-
flatten<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1495
|
-
merge<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1496
|
-
merge<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1497
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1498
|
-
montage<TReturnType>(settings: MontageSettings, func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1499
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => TReturnType): TReturnType;
|
|
1500
|
-
mosaic<TReturnType>(func: (image: IMagickImage) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1501
|
-
read(fileName: string, settings?: MagickReadSettings): void;
|
|
1502
|
-
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
1503
|
-
write<TReturnType>(func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1504
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1505
|
-
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1506
|
-
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1507
|
-
private addImages;
|
|
1508
|
-
private attachImages;
|
|
1509
|
-
private static createObject;
|
|
1510
|
-
private createImage;
|
|
1511
|
-
private static createSettings;
|
|
1512
|
-
private detachImages;
|
|
1513
|
-
private getSettings;
|
|
1514
|
-
private mergeImages;
|
|
1515
|
-
private throwIfEmpty;
|
|
1516
|
-
private checkResult;
|
|
1517
|
-
}
|
|
1518
|
-
export declare class MorphologySettings {
|
|
1519
|
-
constructor(method: MorphologyMethod, kernel: Kernel | string, args?: string);
|
|
1520
|
-
channels: Channels;
|
|
1521
|
-
convolveBias: Percentage | undefined;
|
|
1522
|
-
convolveScale: IMagickGeometry | undefined;
|
|
1523
|
-
iterations: number;
|
|
1524
|
-
readonly kernel: string;
|
|
1525
|
-
readonly method: MorphologyMethod;
|
|
1307
|
+
Meta3 = 13,
|
|
1308
|
+
Meta4 = 14,
|
|
1309
|
+
Meta5 = 15,
|
|
1310
|
+
Meta6 = 16,
|
|
1311
|
+
Meta7 = 17,
|
|
1312
|
+
Meta8 = 18,
|
|
1313
|
+
Meta9 = 19,
|
|
1314
|
+
Meta10 = 20,
|
|
1315
|
+
Meta11 = 21,
|
|
1316
|
+
Meta12 = 22,
|
|
1317
|
+
Meta13 = 23,
|
|
1318
|
+
Meta14 = 24,
|
|
1319
|
+
Meta15 = 25,
|
|
1320
|
+
Meta16 = 26,
|
|
1321
|
+
Meta17 = 27,
|
|
1322
|
+
Meta18 = 28,
|
|
1323
|
+
Meta19 = 29,
|
|
1324
|
+
Meta20 = 30,
|
|
1325
|
+
Meta21 = 31,
|
|
1326
|
+
Meta22 = 32,
|
|
1327
|
+
Meta23 = 33,
|
|
1328
|
+
Meta24 = 34,
|
|
1329
|
+
Meta25 = 35,
|
|
1330
|
+
Meta26 = 36,
|
|
1331
|
+
Meta27 = 37,
|
|
1332
|
+
Meta28 = 38,
|
|
1333
|
+
Meta29 = 39,
|
|
1334
|
+
Meta30 = 40,
|
|
1335
|
+
Meta31 = 41,
|
|
1336
|
+
Meta32 = 42,
|
|
1337
|
+
Meta33 = 43,
|
|
1338
|
+
Meta34 = 44,
|
|
1339
|
+
Meta35 = 45,
|
|
1340
|
+
Meta36 = 46,
|
|
1341
|
+
Meta37 = 47,
|
|
1342
|
+
Meta38 = 48,
|
|
1343
|
+
Meta39 = 49,
|
|
1344
|
+
Meta40 = 50,
|
|
1345
|
+
Meta41 = 51,
|
|
1346
|
+
Meta42 = 52,
|
|
1347
|
+
Meta43 = 53,
|
|
1348
|
+
Meta44 = 54,
|
|
1349
|
+
Meta45 = 55,
|
|
1350
|
+
Meta46 = 56,
|
|
1351
|
+
Meta47 = 57,
|
|
1352
|
+
Meta48 = 58,
|
|
1353
|
+
Meta49 = 59,
|
|
1354
|
+
Meta50 = 60,
|
|
1355
|
+
Meta51 = 61,
|
|
1356
|
+
Meta52 = 62,
|
|
1357
|
+
Composite = 64
|
|
1526
1358
|
}
|
|
1527
1359
|
export type quantumArray = Uint8Array;
|
|
1528
1360
|
export interface IPixelCollection extends IDisposable {
|
|
@@ -1546,6 +1378,43 @@ export declare class PixelCollection extends NativeInstance implements IPixelCol
|
|
|
1546
1378
|
toByteArray(x: number, y: number, width: number, height: number, mapping: string): Uint8Array | null;
|
|
1547
1379
|
private use;
|
|
1548
1380
|
}
|
|
1381
|
+
export declare enum PixelIntensityMethod {
|
|
1382
|
+
Undefined = 0,
|
|
1383
|
+
Average = 1,
|
|
1384
|
+
Brightness = 2,
|
|
1385
|
+
Lightness = 3,
|
|
1386
|
+
MS = 4,
|
|
1387
|
+
Rec601Luma = 5,
|
|
1388
|
+
Rec601Luminance = 6,
|
|
1389
|
+
Rec709Luma = 7,
|
|
1390
|
+
Rec709Luminance = 8,
|
|
1391
|
+
RMS = 9
|
|
1392
|
+
}
|
|
1393
|
+
export declare enum PixelInterpolateMethod {
|
|
1394
|
+
Undefined = 0,
|
|
1395
|
+
Average = 1,
|
|
1396
|
+
Average9 = 2,
|
|
1397
|
+
Average16 = 3,
|
|
1398
|
+
Background = 4,
|
|
1399
|
+
Bilinear = 5,
|
|
1400
|
+
Blend = 6,
|
|
1401
|
+
Catrom = 7,
|
|
1402
|
+
Integer = 8,
|
|
1403
|
+
Mesh = 9,
|
|
1404
|
+
Nearest = 10,
|
|
1405
|
+
Spline = 11
|
|
1406
|
+
}
|
|
1407
|
+
declare class ProgressEvent$1 {
|
|
1408
|
+
readonly origin: string | null;
|
|
1409
|
+
readonly progress: Percentage;
|
|
1410
|
+
cancel: boolean;
|
|
1411
|
+
}
|
|
1412
|
+
export declare enum DitherMethod {
|
|
1413
|
+
Undefined = 0,
|
|
1414
|
+
No = 1,
|
|
1415
|
+
Riemersma = 2,
|
|
1416
|
+
FloydSteinberg = 3
|
|
1417
|
+
}
|
|
1549
1418
|
export declare class QuantizeSettings {
|
|
1550
1419
|
constructor();
|
|
1551
1420
|
colors: number;
|
|
@@ -1554,6 +1423,13 @@ export declare class QuantizeSettings {
|
|
|
1554
1423
|
measureErrors: boolean;
|
|
1555
1424
|
treeDepth: number;
|
|
1556
1425
|
}
|
|
1426
|
+
export declare enum RenderingIntent {
|
|
1427
|
+
Undefined = 0,
|
|
1428
|
+
Saturation = 1,
|
|
1429
|
+
Perceptual = 2,
|
|
1430
|
+
Absolute = 3,
|
|
1431
|
+
Relative = 4
|
|
1432
|
+
}
|
|
1557
1433
|
export interface IChannelStatistics {
|
|
1558
1434
|
readonly channel: PixelChannel;
|
|
1559
1435
|
readonly depth: number;
|
|
@@ -1570,6 +1446,81 @@ export interface IStatistics {
|
|
|
1570
1446
|
composite(): IChannelStatistics;
|
|
1571
1447
|
getChannel(channel: PixelChannel): IChannelStatistics | null;
|
|
1572
1448
|
}
|
|
1449
|
+
export declare enum VirtualPixelMethod {
|
|
1450
|
+
Undefined = 0,
|
|
1451
|
+
Background = 1,
|
|
1452
|
+
Dither = 2,
|
|
1453
|
+
Edge = 3,
|
|
1454
|
+
Mirror = 4,
|
|
1455
|
+
Random = 5,
|
|
1456
|
+
Tile = 6,
|
|
1457
|
+
Transparent = 7,
|
|
1458
|
+
Mask = 8,
|
|
1459
|
+
Black = 9,
|
|
1460
|
+
Gray = 10,
|
|
1461
|
+
White = 11,
|
|
1462
|
+
HorizontalTile = 12,
|
|
1463
|
+
VerticalTile = 13,
|
|
1464
|
+
HorizontalTileEdge = 14,
|
|
1465
|
+
VerticalTileEdge = 15,
|
|
1466
|
+
CheckerTile = 16
|
|
1467
|
+
}
|
|
1468
|
+
export declare enum MagickErrorSeverity {
|
|
1469
|
+
Warning = 300,
|
|
1470
|
+
ResourceLimitWarning = 300,
|
|
1471
|
+
TypeWarning = 305,
|
|
1472
|
+
OptionWarning = 310,
|
|
1473
|
+
DelegateWarning = 315,
|
|
1474
|
+
MissingDelegateWarning = 320,
|
|
1475
|
+
CorruptImageWarning = 325,
|
|
1476
|
+
FileOpenWarning = 330,
|
|
1477
|
+
BlobWarning = 335,
|
|
1478
|
+
StreamWarning = 340,
|
|
1479
|
+
CacheWarning = 345,
|
|
1480
|
+
CoderWarning = 350,
|
|
1481
|
+
FilterWarning = 352,
|
|
1482
|
+
ModuleWarning = 355,
|
|
1483
|
+
DrawWarning = 360,
|
|
1484
|
+
ImageWarning = 365,
|
|
1485
|
+
WandWarning = 370,
|
|
1486
|
+
RandomWarning = 375,
|
|
1487
|
+
XServerWarning = 380,
|
|
1488
|
+
MonitorWarning = 385,
|
|
1489
|
+
RegistryWarning = 390,
|
|
1490
|
+
ConfigureWarning = 395,
|
|
1491
|
+
PolicyWarning = 399,
|
|
1492
|
+
Error = 400,
|
|
1493
|
+
ResourceLimitError = 400,
|
|
1494
|
+
TypeError = 405,
|
|
1495
|
+
OptionError = 410,
|
|
1496
|
+
DelegateError = 415,
|
|
1497
|
+
MissingDelegateError = 420,
|
|
1498
|
+
CorruptImageError = 425,
|
|
1499
|
+
FileOpenError = 430,
|
|
1500
|
+
BlobError = 435,
|
|
1501
|
+
StreamError = 440,
|
|
1502
|
+
CacheError = 445,
|
|
1503
|
+
CoderError = 450,
|
|
1504
|
+
FilterError = 452,
|
|
1505
|
+
ModuleError = 455,
|
|
1506
|
+
DrawError = 460,
|
|
1507
|
+
ImageError = 465,
|
|
1508
|
+
WandError = 470,
|
|
1509
|
+
RandomError = 475,
|
|
1510
|
+
XServerError = 480,
|
|
1511
|
+
MonitorError = 485,
|
|
1512
|
+
RegistryError = 490,
|
|
1513
|
+
ConfigureError = 495,
|
|
1514
|
+
PolicyError = 499
|
|
1515
|
+
}
|
|
1516
|
+
export declare class MagickError extends Error {
|
|
1517
|
+
private _relatedErrors;
|
|
1518
|
+
readonly severity: MagickErrorSeverity;
|
|
1519
|
+
get relatedErrors(): ReadonlyArray<MagickError>;
|
|
1520
|
+
}
|
|
1521
|
+
export declare class WarningEvent {
|
|
1522
|
+
readonly error: MagickError;
|
|
1523
|
+
}
|
|
1573
1524
|
export interface IMagickImage extends IDisposable {
|
|
1574
1525
|
animationDelay: number;
|
|
1575
1526
|
animationIterations: number;
|
|
@@ -1609,9 +1560,10 @@ export interface IMagickImage extends IDisposable {
|
|
|
1609
1560
|
label: string | null;
|
|
1610
1561
|
matteColor: IMagickColor;
|
|
1611
1562
|
orientation: OrientationType$1;
|
|
1612
|
-
page: IMagickGeometry;
|
|
1613
1563
|
onProgress?: (event: ProgressEvent$1) => void;
|
|
1614
1564
|
onWarning?: (event: WarningEvent) => void;
|
|
1565
|
+
page: IMagickGeometry;
|
|
1566
|
+
readonly profileNames: ReadonlyArray<string>;
|
|
1615
1567
|
quality: number;
|
|
1616
1568
|
renderingIntent: RenderingIntent;
|
|
1617
1569
|
readonly settings: MagickSettings;
|
|
@@ -1619,7 +1571,14 @@ export interface IMagickImage extends IDisposable {
|
|
|
1619
1571
|
readonly totalColors: number;
|
|
1620
1572
|
virtualPixelMethod: VirtualPixelMethod;
|
|
1621
1573
|
width: number;
|
|
1574
|
+
adaptiveBlur(): void;
|
|
1575
|
+
adaptiveBlur(radius: number): void;
|
|
1576
|
+
adaptiveBlur(radius: number, sigma: number): void;
|
|
1622
1577
|
alpha(value: AlphaOption$1): void;
|
|
1578
|
+
autoGamma(): void;
|
|
1579
|
+
autoGamma(channels: Channels): void;
|
|
1580
|
+
autoLevel(): void;
|
|
1581
|
+
autoLevel(channels: Channels): void;
|
|
1623
1582
|
autoOrient(): void;
|
|
1624
1583
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
1625
1584
|
blur(): void;
|
|
@@ -1695,6 +1654,9 @@ export interface IMagickImage extends IDisposable {
|
|
|
1695
1654
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1696
1655
|
flip(): void;
|
|
1697
1656
|
flop(): void;
|
|
1657
|
+
gaussianBlur(radius: number): void;
|
|
1658
|
+
gaussianBlur(radius: number, sigma: number): void;
|
|
1659
|
+
gaussianBlur(radius: number, sigma: number, channels: Channels): void;
|
|
1698
1660
|
getArtifact(name: string): string | null;
|
|
1699
1661
|
getAttribute(name: string): string | null;
|
|
1700
1662
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
@@ -1708,8 +1670,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1708
1670
|
inverseContrast(): void;
|
|
1709
1671
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1710
1672
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1711
|
-
inverseLevel(
|
|
1712
|
-
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1673
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1713
1674
|
inverseOpaque(target: IMagickColor, fill: IMagickColor): void;
|
|
1714
1675
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1715
1676
|
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
@@ -1718,8 +1679,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1718
1679
|
inverseTransparent(color: IMagickColor): void;
|
|
1719
1680
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1720
1681
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1721
|
-
level(
|
|
1722
|
-
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1682
|
+
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1723
1683
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1724
1684
|
liquidRescale(geometry: IMagickGeometry): void;
|
|
1725
1685
|
liquidRescale(width: number, height: number): void;
|
|
@@ -1794,7 +1754,7 @@ export interface IMagickImage extends IDisposable {
|
|
|
1794
1754
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1795
1755
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
1796
1756
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
1797
|
-
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
1757
|
+
writeToCanvas(canvas: HTMLCanvasElement, settings?: CanvasRenderingContext2DSettings): void;
|
|
1798
1758
|
}
|
|
1799
1759
|
export declare class MagickImage extends NativeInstance implements IMagickImage {
|
|
1800
1760
|
private readonly _settings;
|
|
@@ -1864,12 +1824,13 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1864
1824
|
set matteColor(value: IMagickColor);
|
|
1865
1825
|
get orientation(): OrientationType$1;
|
|
1866
1826
|
set orientation(value: OrientationType$1);
|
|
1867
|
-
get page(): IMagickGeometry;
|
|
1868
|
-
set page(value: IMagickGeometry);
|
|
1869
1827
|
get onProgress(): ((event: ProgressEvent$1) => number) | undefined;
|
|
1870
1828
|
set onProgress(value: ((event: ProgressEvent$1) => number) | undefined);
|
|
1871
1829
|
get onWarning(): ((event: WarningEvent) => number) | undefined;
|
|
1872
1830
|
set onWarning(value: ((event: WarningEvent) => number) | undefined);
|
|
1831
|
+
get page(): IMagickGeometry;
|
|
1832
|
+
set page(value: IMagickGeometry);
|
|
1833
|
+
get profileNames(): ReadonlyArray<string>;
|
|
1873
1834
|
get quality(): number;
|
|
1874
1835
|
set quality(value: number);
|
|
1875
1836
|
get renderingIntent(): RenderingIntent;
|
|
@@ -1880,7 +1841,12 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1880
1841
|
get virtualPixelMethod(): VirtualPixelMethod;
|
|
1881
1842
|
set virtualPixelMethod(value: VirtualPixelMethod);
|
|
1882
1843
|
get width(): number;
|
|
1844
|
+
adaptiveBlur(): void;
|
|
1845
|
+
adaptiveBlur(radius: number): void;
|
|
1846
|
+
adaptiveBlur(radius: number, sigma: number): void;
|
|
1883
1847
|
alpha(value: AlphaOption$1): void;
|
|
1848
|
+
autoGamma(): void;
|
|
1849
|
+
autoLevel(): void;
|
|
1884
1850
|
autoOrient(): void;
|
|
1885
1851
|
autoThreshold(method: AutoThresholdMethod): void;
|
|
1886
1852
|
blur(): void;
|
|
@@ -1960,6 +1926,9 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1960
1926
|
extent(geometry: IMagickGeometry, backgroundColor: IMagickColor): void;
|
|
1961
1927
|
flip(): void;
|
|
1962
1928
|
flop(): void;
|
|
1929
|
+
gaussianBlur(radius: number): void;
|
|
1930
|
+
gaussianBlur(radius: number, sigma: number): void;
|
|
1931
|
+
gaussianBlur(radius: number, sigma: number, channels: Channels): void;
|
|
1963
1932
|
getArtifact(name: string): string | null;
|
|
1964
1933
|
getAttribute(name: string): string | null;
|
|
1965
1934
|
getPixels<TReturnType>(func: (pixels: IPixelCollection) => TReturnType): TReturnType;
|
|
@@ -1972,8 +1941,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1972
1941
|
inverseContrast: () => void;
|
|
1973
1942
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1974
1943
|
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1975
|
-
inverseLevel(
|
|
1976
|
-
inverseLevel(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1944
|
+
inverseLevel(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1977
1945
|
inverseOpaque: (target: IMagickColor, fill: IMagickColor) => void;
|
|
1978
1946
|
inverseSigmoidalContrast(contrast: number): void;
|
|
1979
1947
|
inverseSigmoidalContrast(contrast: number, midpoint: Percentage): void;
|
|
@@ -1982,8 +1950,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
1982
1950
|
inverseTransparent: (color: IMagickColor) => void;
|
|
1983
1951
|
level(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1984
1952
|
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1985
|
-
level(
|
|
1986
|
-
level(channels: Channels, blackPoint: Percentage, whitePoint: Percentage, gamma: number): void;
|
|
1953
|
+
level(blackPoint: Percentage, whitePoint: Percentage, gamma: number, channels: Channels): void;
|
|
1987
1954
|
linearStretch(blackPoint: Percentage, whitePoint: Percentage): void;
|
|
1988
1955
|
liquidRescale(geometry: IMagickGeometry): void;
|
|
1989
1956
|
liquidRescale(width: number, height: number): void;
|
|
@@ -2052,7 +2019,7 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2052
2019
|
write<TReturnType>(func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2053
2020
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => TReturnType): TReturnType;
|
|
2054
2021
|
write<TReturnType>(format: MagickFormat, func: (data: Uint8Array) => Promise<TReturnType>): Promise<TReturnType>;
|
|
2055
|
-
writeToCanvas(canvas: HTMLCanvasElement): void;
|
|
2022
|
+
writeToCanvas(canvas: HTMLCanvasElement, settings?: CanvasRenderingContext2DSettings): void;
|
|
2056
2023
|
protected onDispose(): void;
|
|
2057
2024
|
private _contrast;
|
|
2058
2025
|
private _opaque;
|
|
@@ -2068,6 +2035,98 @@ export declare class MagickImage extends NativeInstance implements IMagickImage
|
|
|
2068
2035
|
private useException;
|
|
2069
2036
|
private useExceptionPointer;
|
|
2070
2037
|
}
|
|
2038
|
+
export declare class TypeMetric {
|
|
2039
|
+
private constructor();
|
|
2040
|
+
readonly ascent: number;
|
|
2041
|
+
readonly descent: number;
|
|
2042
|
+
readonly maxHorizontalAdvance: number;
|
|
2043
|
+
readonly textHeight: number;
|
|
2044
|
+
readonly textWidth: number;
|
|
2045
|
+
readonly underlinePosition: number;
|
|
2046
|
+
readonly underlineThickness: number;
|
|
2047
|
+
}
|
|
2048
|
+
export declare class Drawables {
|
|
2049
|
+
private _drawables;
|
|
2050
|
+
disableStrokeAntialias(): Drawables;
|
|
2051
|
+
enableStrokeAntialias(): Drawables;
|
|
2052
|
+
fillColor(color: IMagickColor): Drawables;
|
|
2053
|
+
fillOpacity(opacity: Percentage): Drawables;
|
|
2054
|
+
font(font: string): Drawables;
|
|
2055
|
+
fontPointSize(pointSize: number): Drawables;
|
|
2056
|
+
fontTypeMetrics(text: string, ignoreNewlines?: boolean): TypeMetric | null;
|
|
2057
|
+
gravity(value: Gravity): Drawables;
|
|
2058
|
+
line(startX: number, startY: number, endX: number, endY: number): Drawables;
|
|
2059
|
+
point(x: number, y: number): Drawables;
|
|
2060
|
+
rectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number): Drawables;
|
|
2061
|
+
roundRectangle(upperLeftX: number, upperLeftY: number, lowerRightX: number, lowerRightY: number, cornerWidth: number, cornerHeight: number): Drawables;
|
|
2062
|
+
strokeColor(color: IMagickColor): Drawables;
|
|
2063
|
+
strokeWidth(width: number): Drawables;
|
|
2064
|
+
text(x: number, y: number, value: string): Drawables;
|
|
2065
|
+
textAlignment(alignment: TextAlignment): Drawables;
|
|
2066
|
+
textDecoration(decoration: TextDecoration): Drawables;
|
|
2067
|
+
textInterlineSpacing(spacing: number): Drawables;
|
|
2068
|
+
textInterwordSpacing(spacing: number): Drawables;
|
|
2069
|
+
textKerning(kerning: number): Drawables;
|
|
2070
|
+
textUnderColor(color: IMagickColor): Drawables;
|
|
2071
|
+
draw(image: IMagickImage): Drawables;
|
|
2072
|
+
}
|
|
2073
|
+
export declare enum LogEventTypes {
|
|
2074
|
+
None = 0,
|
|
2075
|
+
Accelerate = 1,
|
|
2076
|
+
Annotate = 2,
|
|
2077
|
+
Blob = 4,
|
|
2078
|
+
Cache = 8,
|
|
2079
|
+
Coder = 16,
|
|
2080
|
+
Configure = 32,
|
|
2081
|
+
Deprecate = 64,
|
|
2082
|
+
Draw = 128,
|
|
2083
|
+
Exception = 256,
|
|
2084
|
+
Image = 512,
|
|
2085
|
+
Locale = 1024,
|
|
2086
|
+
Module = 2048,
|
|
2087
|
+
Pixel = 4096,
|
|
2088
|
+
Policy = 8192,
|
|
2089
|
+
Resource = 16384,
|
|
2090
|
+
Trace = 32768,
|
|
2091
|
+
Transform = 65536,
|
|
2092
|
+
User = 131072,
|
|
2093
|
+
Wand = 262144,
|
|
2094
|
+
Detailed = 2147450879,
|
|
2095
|
+
All = 2147483647
|
|
2096
|
+
}
|
|
2097
|
+
export declare class LogEvent {
|
|
2098
|
+
constructor(eventType: LogEventTypes, message?: string);
|
|
2099
|
+
readonly eventType: LogEventTypes;
|
|
2100
|
+
readonly message: string;
|
|
2101
|
+
}
|
|
2102
|
+
export declare enum DngInterpolation {
|
|
2103
|
+
Disabled = -1,
|
|
2104
|
+
Linear = 0,
|
|
2105
|
+
Vng = 1,
|
|
2106
|
+
Ppg = 2,
|
|
2107
|
+
Ahd = 3,
|
|
2108
|
+
DCB = 4,
|
|
2109
|
+
Dht = 11,
|
|
2110
|
+
ModifiedAhd = 12
|
|
2111
|
+
}
|
|
2112
|
+
export declare enum DngOutputColor {
|
|
2113
|
+
Raw = 0,
|
|
2114
|
+
SRGB = 1,
|
|
2115
|
+
AdobeRGB = 2,
|
|
2116
|
+
WideGamutRGB = 3,
|
|
2117
|
+
KodakProPhotoRGB = 4,
|
|
2118
|
+
XYZ = 5,
|
|
2119
|
+
ACES = 6
|
|
2120
|
+
}
|
|
2121
|
+
export declare class DngReadDefines extends DefinesCreator {
|
|
2122
|
+
constructor();
|
|
2123
|
+
disableAutoBrightness?: boolean;
|
|
2124
|
+
interpolationQuality?: DngInterpolation;
|
|
2125
|
+
outputColor?: DngOutputColor;
|
|
2126
|
+
useAutoWhitebalance?: boolean;
|
|
2127
|
+
useCameraWhitebalance?: boolean;
|
|
2128
|
+
getDefines(): IDefine[];
|
|
2129
|
+
}
|
|
2071
2130
|
export declare class ImageMagick {
|
|
2072
2131
|
private readonly loader;
|
|
2073
2132
|
private api?;
|
|
@@ -2252,6 +2311,41 @@ export interface IMagickFormatInfo {
|
|
|
2252
2311
|
readonly supportsReading: boolean;
|
|
2253
2312
|
readonly supportsWriting: boolean;
|
|
2254
2313
|
}
|
|
2314
|
+
export interface IMagickImageInfo {
|
|
2315
|
+
readonly colorSpace: ColorSpace;
|
|
2316
|
+
readonly compression: CompressionMethod;
|
|
2317
|
+
readonly density: Density;
|
|
2318
|
+
readonly format: MagickFormat;
|
|
2319
|
+
readonly height: number;
|
|
2320
|
+
readonly interlace: Interlace;
|
|
2321
|
+
readonly orientation: OrientationType$1;
|
|
2322
|
+
readonly quality: number;
|
|
2323
|
+
readonly width: number;
|
|
2324
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2325
|
+
}
|
|
2326
|
+
export declare class MagickImageInfo implements IMagickImageInfo {
|
|
2327
|
+
private _colorSpace;
|
|
2328
|
+
private _compression;
|
|
2329
|
+
private _density;
|
|
2330
|
+
private _format;
|
|
2331
|
+
private _height;
|
|
2332
|
+
private _interlace;
|
|
2333
|
+
private _orientation;
|
|
2334
|
+
private _quality;
|
|
2335
|
+
private _width;
|
|
2336
|
+
get colorSpace(): ColorSpace;
|
|
2337
|
+
get compression(): CompressionMethod;
|
|
2338
|
+
get density(): Density;
|
|
2339
|
+
get format(): MagickFormat;
|
|
2340
|
+
get height(): number;
|
|
2341
|
+
get interlace(): Interlace;
|
|
2342
|
+
get orientation(): OrientationType$1;
|
|
2343
|
+
get quality(): number;
|
|
2344
|
+
get width(): number;
|
|
2345
|
+
constructor();
|
|
2346
|
+
read(array: ByteArray, settings?: MagickReadSettings): void;
|
|
2347
|
+
static create(array: ByteArray, settings?: MagickReadSettings): IMagickImageInfo;
|
|
2348
|
+
}
|
|
2255
2349
|
export declare class Magick {
|
|
2256
2350
|
static get delegates(): string;
|
|
2257
2351
|
static get features(): string;
|