dwt 16.2.4 → 16.2.6
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/README.md +16 -12
- package/dist/addon/dbrjs/dbr-7.6.0.full.wasm.js +4016 -4016
- package/dist/addon/dbrjs/dbr-7.6.0.worker.js +107 -107
- package/dist/addon/dbrjs/dbr.js +10 -10
- package/dist/dist/DynamsoftServiceSetup.deb +0 -0
- package/dist/dist/DynamsoftServiceSetup.msi +0 -0
- package/dist/dist/DynamsoftServiceSetup.pkg +0 -0
- package/dist/dist/DynamsoftServiceSetup.rpm +0 -0
- package/dist/dist/LICENSE +95 -95
- package/dist/dynamsoft.webtwain.min.js +209 -209
- package/dist/dynamsoft.webtwain.min.mjs +208 -208
- package/dist/src/dynamsoft.imageio_wasm-1.6.2.js +93 -93
- package/dist/src/dynamsoft.webtwain.css +1045 -1045
- package/dist/types/Addon.BarcodeReader.d.ts +168 -168
- package/dist/types/Addon.Camera.d.ts +125 -125
- package/dist/types/Addon.OCR.d.ts +264 -264
- package/dist/types/Addon.OCRPro.d.ts +251 -251
- package/dist/types/Addon.PDF.d.ts +110 -110
- package/dist/types/Addon.Webcam.d.ts +257 -257
- package/dist/types/Dynamsoft.Enum.d.ts +1850 -1849
- package/dist/types/Dynamsoft.FileUploader.d.ts +130 -130
- package/dist/types/Dynamsoft.d.ts +495 -495
- package/dist/types/WebTwain.Acquire.d.ts +1059 -1059
- package/dist/types/WebTwain.Buffer.d.ts +259 -259
- package/dist/types/WebTwain.Edit.d.ts +434 -434
- package/dist/types/WebTwain.IO.d.ts +951 -951
- package/dist/types/WebTwain.Util.d.ts +102 -102
- package/dist/types/WebTwain.Viewer.d.ts +795 -795
- package/dist/types/WebTwain.d.ts +51 -51
- package/dist/types/index.d.ts +20 -20
- package/package.json +2 -2
- package/samples/1.AcquireImage.html +0 -69
- package/samples/2.CustomScan.html +0 -98
- package/samples/3.PDFRasterizer.html +0 -73
- package/samples/4.OCRADocument.html +0 -156
- package/samples/5.ReadBarcode.html +0 -231
- package/samples/6.ScanOrCapture.html +0 -189
|
@@ -1,434 +1,434 @@
|
|
|
1
|
-
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
-
import { WebTwainBuffer } from "./WebTwain.Buffer";
|
|
3
|
-
|
|
4
|
-
export interface WebTwainEdit extends WebTwainBuffer {
|
|
5
|
-
/**
|
|
6
|
-
* Show the built-in image editor. If called without any arguments while the editor is open, it'll close the editor.
|
|
7
|
-
* @param divId Specify a div element to hold the editor.
|
|
8
|
-
* @param width Specify the width of the editor.
|
|
9
|
-
* @param height Specify the height of the editor.
|
|
10
|
-
*/
|
|
11
|
-
ShowImageEditor(
|
|
12
|
-
divId?: string,
|
|
13
|
-
width?: number,
|
|
14
|
-
height?: number
|
|
15
|
-
): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Change the bit depth of the specified image.
|
|
18
|
-
* @param index Specify the image.
|
|
19
|
-
* @param bitDepth Specify the bit depth.
|
|
20
|
-
* @param highQuality Whether to keep high quality.
|
|
21
|
-
*/
|
|
22
|
-
ChangeBitDepth(
|
|
23
|
-
index: number,
|
|
24
|
-
bitDepth: number,
|
|
25
|
-
highQuality: boolean,
|
|
26
|
-
): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Change the size of the specified image.
|
|
29
|
-
* @param index Specify the image.
|
|
30
|
-
* @param width Specify the new width.
|
|
31
|
-
* @param height Specify the new height.
|
|
32
|
-
* @param method Specify the algorithm for the change.
|
|
33
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
34
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
35
|
-
* @argument errorCode The error code.
|
|
36
|
-
* @argument errorString The error string.
|
|
37
|
-
*/
|
|
38
|
-
ChangeImageSize(
|
|
39
|
-
index: number,
|
|
40
|
-
width: number,
|
|
41
|
-
height: number,
|
|
42
|
-
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
43
|
-
successCallback?: () => void,
|
|
44
|
-
failureCallback?: (
|
|
45
|
-
errorCode: number,
|
|
46
|
-
errorString: string
|
|
47
|
-
) => void
|
|
48
|
-
): void | boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Change the DPI (dots per inch) of the specified image.
|
|
51
|
-
* @param index Specify the image.
|
|
52
|
-
* @param xResolution Specify the horizontal DPI.
|
|
53
|
-
* @param yResolution Specify the vertical DPI.
|
|
54
|
-
* @param resample Whether to resample the image.
|
|
55
|
-
* @param method Specify the algorithm for the change.
|
|
56
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
57
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
58
|
-
* @argument errorCode The error code.
|
|
59
|
-
* @argument errorString The error string.
|
|
60
|
-
*/
|
|
61
|
-
SetDPI(
|
|
62
|
-
index: number,
|
|
63
|
-
xResolution: number,
|
|
64
|
-
yResolution: number,
|
|
65
|
-
resample: boolean,
|
|
66
|
-
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
67
|
-
successCallback?: () => void,
|
|
68
|
-
failureCallback?: (
|
|
69
|
-
errorCode: number,
|
|
70
|
-
errorString: string
|
|
71
|
-
) => void
|
|
72
|
-
): void | boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Convert the specified image to black & white.
|
|
75
|
-
* @param index Specify the image.
|
|
76
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
77
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
78
|
-
* @argument errorCode The error code.
|
|
79
|
-
* @argument errorString The error string.
|
|
80
|
-
*/
|
|
81
|
-
ConvertToBW(
|
|
82
|
-
index: number,
|
|
83
|
-
successCallback?: () => void,
|
|
84
|
-
failureCallback?: (
|
|
85
|
-
errorCode: number,
|
|
86
|
-
errorString: string
|
|
87
|
-
) => void
|
|
88
|
-
): void | boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Convert the specified image to grayscale.
|
|
91
|
-
* @param index Specify the image.
|
|
92
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
93
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
94
|
-
* @argument errorCode The error code.
|
|
95
|
-
* @argument errorString The error string.
|
|
96
|
-
*/
|
|
97
|
-
ConvertToGrayScale(
|
|
98
|
-
index: number,
|
|
99
|
-
successCallback?: () => void,
|
|
100
|
-
failureCallback?: (
|
|
101
|
-
errorCode: number,
|
|
102
|
-
errorString: string
|
|
103
|
-
) => void
|
|
104
|
-
): void | boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Invert the colour of the pixels on the specified image.
|
|
107
|
-
* @param index Specify the image.
|
|
108
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
109
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
110
|
-
* @argument errorCode The error code.
|
|
111
|
-
* @argument errorString The error string.
|
|
112
|
-
*/
|
|
113
|
-
Invert(
|
|
114
|
-
index: number,
|
|
115
|
-
successCallback?: () => void,
|
|
116
|
-
failureCallback?: (
|
|
117
|
-
errorCode: number,
|
|
118
|
-
errorString: string
|
|
119
|
-
) => void
|
|
120
|
-
): void | boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Change the width of the specified image by adding a margin or removing part of the image.
|
|
123
|
-
* @param index Specify the image.
|
|
124
|
-
* @param width Specify the new width.
|
|
125
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
126
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
127
|
-
* @argument errorCode The error code.
|
|
128
|
-
* @argument errorString The error string.
|
|
129
|
-
*/
|
|
130
|
-
SetImageWidth(
|
|
131
|
-
index: number,
|
|
132
|
-
width: number,
|
|
133
|
-
successCallback?: () => void,
|
|
134
|
-
failureCallback?: (
|
|
135
|
-
errorCode: number,
|
|
136
|
-
errorString: string
|
|
137
|
-
) => void
|
|
138
|
-
): void | boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Flip the specified image.
|
|
141
|
-
* @param index Specify the image.
|
|
142
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
143
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
144
|
-
* @argument errorCode The error code.
|
|
145
|
-
* @argument errorString The error string.
|
|
146
|
-
*/
|
|
147
|
-
Flip(
|
|
148
|
-
index: number,
|
|
149
|
-
successCallback?: () => void,
|
|
150
|
-
failureCallback?: (
|
|
151
|
-
errorCode: number,
|
|
152
|
-
errorString: string
|
|
153
|
-
) => void
|
|
154
|
-
): void | boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Mirror the specified image.
|
|
157
|
-
* @param index Specify the image.
|
|
158
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
159
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
160
|
-
* @argument errorCode The error code.
|
|
161
|
-
* @argument errorString The error string.
|
|
162
|
-
*/
|
|
163
|
-
Mirror(
|
|
164
|
-
index: number,
|
|
165
|
-
successCallback?: () => void,
|
|
166
|
-
failureCallback?: (
|
|
167
|
-
errorCode: number,
|
|
168
|
-
errorString: string
|
|
169
|
-
) => void
|
|
170
|
-
): void | boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Rotate the specified image 90 degrees counterclockwise.
|
|
173
|
-
* @param index Specify the image.
|
|
174
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
175
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
176
|
-
* @argument errorCode The error code.
|
|
177
|
-
* @argument errorString The error string.
|
|
178
|
-
*/
|
|
179
|
-
RotateLeft(
|
|
180
|
-
index: number,
|
|
181
|
-
successCallback?: () => void,
|
|
182
|
-
failureCallback?: (
|
|
183
|
-
errorCode: number,
|
|
184
|
-
errorString: string
|
|
185
|
-
) => void
|
|
186
|
-
): void | boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Rotate the specified image 90 degrees clockwise.
|
|
189
|
-
* @param index Specify the image.
|
|
190
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
191
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
192
|
-
* @argument errorCode The error code.
|
|
193
|
-
* @argument errorString The error string.
|
|
194
|
-
*/
|
|
195
|
-
RotateRight(
|
|
196
|
-
index: number,
|
|
197
|
-
successCallback?: () => void,
|
|
198
|
-
failureCallback?: (
|
|
199
|
-
errorCode: number,
|
|
200
|
-
errorString: string
|
|
201
|
-
) => void
|
|
202
|
-
): void | boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Rotate the specified image by the specified angle.
|
|
205
|
-
* @param index Specify the image.
|
|
206
|
-
* @param angle Specify the angle.
|
|
207
|
-
* @param keepSize Whether to keep the original size.
|
|
208
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
209
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
210
|
-
* @argument errorCode The error code.
|
|
211
|
-
* @argument errorString The error string.
|
|
212
|
-
*/
|
|
213
|
-
Rotate(
|
|
214
|
-
index: number,
|
|
215
|
-
angle: number,
|
|
216
|
-
keepSize: boolean,
|
|
217
|
-
successCallback?: () => void,
|
|
218
|
-
failureCallback?: (
|
|
219
|
-
errorCode: number,
|
|
220
|
-
errorString: string
|
|
221
|
-
) => void
|
|
222
|
-
): void | boolean;
|
|
223
|
-
/**
|
|
224
|
-
* Rotate the specified image by the specified angle.
|
|
225
|
-
* @param index Specify the image.
|
|
226
|
-
* @param angle Specify the angle.
|
|
227
|
-
* @param keepSize Whether to keep the original size.
|
|
228
|
-
* @param method Specify the algorithm for the change.
|
|
229
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
230
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
231
|
-
* @argument errorCode The error code.
|
|
232
|
-
* @argument errorString The error string.
|
|
233
|
-
*/
|
|
234
|
-
RotateEx(
|
|
235
|
-
index: number,
|
|
236
|
-
angle: number,
|
|
237
|
-
keepSize: boolean,
|
|
238
|
-
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
239
|
-
successCallback?: () => void,
|
|
240
|
-
failureCallback?: (
|
|
241
|
-
errorCode: number,
|
|
242
|
-
errorString: string
|
|
243
|
-
) => void
|
|
244
|
-
): void | boolean;
|
|
245
|
-
/**
|
|
246
|
-
* Crop the specified image using the specified coordinates.
|
|
247
|
-
* @param index Specify the image.
|
|
248
|
-
* @param left Specify the rectangle (leftmost coordinate).
|
|
249
|
-
* @param top Specify the rectangle (topmost coordinate).
|
|
250
|
-
* @param right Specify the rectangle (rightmost coordinate).
|
|
251
|
-
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
252
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
253
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
254
|
-
* @argument errorCode The error code.
|
|
255
|
-
* @argument errorString The error string.
|
|
256
|
-
*/
|
|
257
|
-
Crop(
|
|
258
|
-
index: number,
|
|
259
|
-
left: number,
|
|
260
|
-
top: number,
|
|
261
|
-
right: number,
|
|
262
|
-
bottom: number,
|
|
263
|
-
successCallback?: () => void,
|
|
264
|
-
failureCallback?: (
|
|
265
|
-
errorCode: number,
|
|
266
|
-
errorString: string
|
|
267
|
-
) => void
|
|
268
|
-
): void | boolean;
|
|
269
|
-
/**
|
|
270
|
-
* Erase a rectangular area from the specified image.
|
|
271
|
-
* @param index Specify the image.
|
|
272
|
-
* @param left Specify the rectangle (leftmost coordinate).
|
|
273
|
-
* @param top Specify the rectangle (topmost coordinate).
|
|
274
|
-
* @param right Specify the rectangle (rightmost coordinate).
|
|
275
|
-
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
276
|
-
* @param successCallback A callback function that is executed if the request succeeds.
|
|
277
|
-
* @param failureCallback A callback function that is executed if the request fails.
|
|
278
|
-
* @argument errorCode The error code.
|
|
279
|
-
* @argument errorString The error string.
|
|
280
|
-
*/
|
|
281
|
-
Erase(
|
|
282
|
-
index: number,
|
|
283
|
-
left: number,
|
|
284
|
-
top: number,
|
|
285
|
-
right: number,
|
|
286
|
-
bottom: number,
|
|
287
|
-
successCallback?: () => void,
|
|
288
|
-
failureCallback?: (
|
|
289
|
-
errorCode: number,
|
|
290
|
-
errorString: string
|
|
291
|
-
) => void
|
|
292
|
-
): void | boolean;
|
|
293
|
-
/**
|
|
294
|
-
* Copy the specified image to the clipboard of the operating system.
|
|
295
|
-
* @param index Specify the image.
|
|
296
|
-
*/
|
|
297
|
-
CopyToClipboard(index: number): boolean;
|
|
298
|
-
/**
|
|
299
|
-
* Cut the specified image to the clipboard of the operating system.
|
|
300
|
-
* @param index Specify the image.
|
|
301
|
-
*/
|
|
302
|
-
CutToClipboard(index: number): boolean;
|
|
303
|
-
/**
|
|
304
|
-
* Crop a rectangular area from the specified image to the clipboard of the operating system.
|
|
305
|
-
* @param index Specify the image.
|
|
306
|
-
* @param left Specify the rectangle (leftmost coordinate).
|
|
307
|
-
* @param top Specify the rectangle (topmost coordinate).
|
|
308
|
-
* @param right Specify the rectangle (rightmost coordinate).
|
|
309
|
-
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
310
|
-
*/
|
|
311
|
-
CropToClipboard(
|
|
312
|
-
index: number,
|
|
313
|
-
left: number,
|
|
314
|
-
top: number,
|
|
315
|
-
right: number,
|
|
316
|
-
bottom: number
|
|
317
|
-
): boolean;
|
|
318
|
-
/**
|
|
319
|
-
* Cut a rectangular area from the specified image to the clipboard of the operating system.
|
|
320
|
-
* @param index Specify the image.
|
|
321
|
-
* @param left Specify the rectangle (leftmost coordinate).
|
|
322
|
-
* @param top Specify the rectangle (topmost coordinate).
|
|
323
|
-
* @param right Specify the rectangle (rightmost coordinate).
|
|
324
|
-
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
325
|
-
*/
|
|
326
|
-
CutFrameToClipboard(
|
|
327
|
-
index: number,
|
|
328
|
-
left: number,
|
|
329
|
-
top: number,
|
|
330
|
-
right: number,
|
|
331
|
-
bottom: number
|
|
332
|
-
): boolean;
|
|
333
|
-
/**
|
|
334
|
-
* Return or set the fill colour for the empty area on an image that has been cut/cropped/erased.
|
|
335
|
-
*/
|
|
336
|
-
BackgroundFillColor: number;
|
|
337
|
-
/**
|
|
338
|
-
* [Deprecation] Add text on an image.
|
|
339
|
-
* [Alternative] Annotation feature to be added in a later version.
|
|
340
|
-
* @param index the index of the image that you want to add text to.
|
|
341
|
-
* @param x the x coordinate for the text.
|
|
342
|
-
* @param y the y coordinate for the text.
|
|
343
|
-
* @param text the content of the text that you want to add.
|
|
344
|
-
* @param txtColor the color for the text.
|
|
345
|
-
* @param backgroundColor the background color.
|
|
346
|
-
* @param backgroundRoundRadius ranging from 0 to 0.5. Please NOTE that MAC version does not support this parameter.
|
|
347
|
-
* @param backgroundOpacity specifies the opacity of the background of the added text, it ranges from 0 to 1.0. Please NOTE that Mac version only supports value 0 and 1
|
|
348
|
-
*/
|
|
349
|
-
AddText(
|
|
350
|
-
index: number,
|
|
351
|
-
x: number,
|
|
352
|
-
y: number,
|
|
353
|
-
text: string,
|
|
354
|
-
txtColor: number,
|
|
355
|
-
backgroundColor: number,
|
|
356
|
-
backgroundRoundRadius: number,
|
|
357
|
-
backgroundOpacity: number
|
|
358
|
-
): boolean;
|
|
359
|
-
/**
|
|
360
|
-
* [Deprecation] Create the font for adding text using the method AddText.
|
|
361
|
-
* [Alternative] Annotation feature to be added in a later version.
|
|
362
|
-
* @param height Specifies the desired height (in logical units) of the font.
|
|
363
|
-
* The absolute value of nHeight must not exceed 16,384 device units after it is converted.
|
|
364
|
-
* For all height comparisons, the font mapper looks for the largest font that does not
|
|
365
|
-
* exceed the requested size or the smallest font if all the fonts exceed the requested size.
|
|
366
|
-
* @param width Specifies the average width (in logical units) of characters in the font.
|
|
367
|
-
* If Width is 0, the aspect ratio of the device will be matched against the digitization
|
|
368
|
-
* aspect ratio of the available fonts to find the closest match, which is determined by the
|
|
369
|
-
* absolute value of the difference.
|
|
370
|
-
* @param escapement Specifies the angle (in 0.1-degree units) between the escapement vector
|
|
371
|
-
* and the x-axis of the display surface. The escapement vector is the line through the origins
|
|
372
|
-
* of the first and last characters on a line. The angle is measured counterclockwise from the x-axis.
|
|
373
|
-
* @param orientation Specifies the angle (in 0.1-degree units) between the baseline of a character
|
|
374
|
-
* and the x-axis.The angle is measured counterclockwise from the x-axis for coordinate systems
|
|
375
|
-
* in which the y-direction is down and clockwise from the x-axis for coordinate systems in which
|
|
376
|
-
* the y-direction is up.
|
|
377
|
-
* @param weight Specifies the font weight (in inked pixels per 1000). The described valuesare
|
|
378
|
-
* approximate; the actual appearance depends on the typeface. Some fonts haveonly FW_NORMAL,
|
|
379
|
-
* FW_REGULAR, and FW_BOLD weights. If FW_DONTCARE is specified, a default weight is used.
|
|
380
|
-
* @param italic Specifies an italic font if set to TRUE.
|
|
381
|
-
* @param underline Specifies an underlined font if set to TRUE.
|
|
382
|
-
* @param strikeOut A strikeout font if set to TRUE.
|
|
383
|
-
* @param charSet Specifies the font's character set. The OEM character set is system-dependent.
|
|
384
|
-
* Fonts with other character sets may exist in the system. An application that uses a font with
|
|
385
|
-
* an unknown character set must not attempt to translate or interpret strings that are to be
|
|
386
|
-
* rendered with that font.
|
|
387
|
-
* @param outputPrecision Specifies the desired output precision. The output precision defines
|
|
388
|
-
* how closely the output must match the requested font's height, width, character orientation,
|
|
389
|
-
* escapement, and pitch.
|
|
390
|
-
* @param clipPrecision Specifies the desired clipping precision. The clipping precision defines
|
|
391
|
-
* how to clip characters that are partially outside the clipping region.
|
|
392
|
-
* @param quality Specifies the font's output quality, which defines how carefully the GDI must
|
|
393
|
-
* attempt to match the logical-font attributes to those of an actual physical font.
|
|
394
|
-
* @param pitchAndFamily The pitch and family of the font.
|
|
395
|
-
* @param faceName The typeface name, the length of this string must not exceed 32 characters,
|
|
396
|
-
* including the terminating null character.
|
|
397
|
-
*/
|
|
398
|
-
CreateTextFont(
|
|
399
|
-
height: number,
|
|
400
|
-
width: number,
|
|
401
|
-
escapement: number,
|
|
402
|
-
orientation: number,
|
|
403
|
-
weight: number,
|
|
404
|
-
italic: number,
|
|
405
|
-
underline: number,
|
|
406
|
-
strikeOut: number,
|
|
407
|
-
charSet: number,
|
|
408
|
-
outputPrecision: number,
|
|
409
|
-
clipPrecision: number,
|
|
410
|
-
quality: number,
|
|
411
|
-
pitchAndFamily: number,
|
|
412
|
-
faceName: string
|
|
413
|
-
): boolean;
|
|
414
|
-
/**
|
|
415
|
-
* [Deprecation] Decorates image of a specified index in buffer with rectangles of transparent color.
|
|
416
|
-
* [Alternative] Annotation feature to be added in a later version.
|
|
417
|
-
* @param index specifies the index of image in buffer. The index is 0-based.
|
|
418
|
-
* @param left Specify the rectangle (leftmost coordinate).
|
|
419
|
-
* @param top Specify the rectangle (topmost coordinate).
|
|
420
|
-
* @param right Specify the rectangle (rightmost coordinate).
|
|
421
|
-
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
422
|
-
* @param color Specifies the fill color of the rectangle. The byte-ordering of the RGB value is 0xBBGGRR. BB represents blue, GG represents green, RR represents red.
|
|
423
|
-
* @param fOpacity Specifies the opacity of the rectangle. The value represents opacity. 1.0 is 100% opaque and 0.0 is totally transparent.
|
|
424
|
-
*/
|
|
425
|
-
OverlayRectangle(
|
|
426
|
-
index: number,
|
|
427
|
-
left: number,
|
|
428
|
-
top: number,
|
|
429
|
-
right: number,
|
|
430
|
-
bottom: number,
|
|
431
|
-
color: number,
|
|
432
|
-
fOpacity: number
|
|
433
|
-
): boolean;
|
|
434
|
-
}
|
|
1
|
+
import { DynamsoftEnums as Dynamsoft } from "./Dynamsoft.Enum";
|
|
2
|
+
import { WebTwainBuffer } from "./WebTwain.Buffer";
|
|
3
|
+
|
|
4
|
+
export interface WebTwainEdit extends WebTwainBuffer {
|
|
5
|
+
/**
|
|
6
|
+
* Show the built-in image editor. If called without any arguments while the editor is open, it'll close the editor.
|
|
7
|
+
* @param divId Specify a div element to hold the editor.
|
|
8
|
+
* @param width Specify the width of the editor.
|
|
9
|
+
* @param height Specify the height of the editor.
|
|
10
|
+
*/
|
|
11
|
+
ShowImageEditor(
|
|
12
|
+
divId?: string,
|
|
13
|
+
width?: number,
|
|
14
|
+
height?: number
|
|
15
|
+
): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Change the bit depth of the specified image.
|
|
18
|
+
* @param index Specify the image.
|
|
19
|
+
* @param bitDepth Specify the bit depth.
|
|
20
|
+
* @param highQuality Whether to keep high quality.
|
|
21
|
+
*/
|
|
22
|
+
ChangeBitDepth(
|
|
23
|
+
index: number,
|
|
24
|
+
bitDepth: number,
|
|
25
|
+
highQuality: boolean,
|
|
26
|
+
): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Change the size of the specified image.
|
|
29
|
+
* @param index Specify the image.
|
|
30
|
+
* @param width Specify the new width.
|
|
31
|
+
* @param height Specify the new height.
|
|
32
|
+
* @param method Specify the algorithm for the change.
|
|
33
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
34
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
35
|
+
* @argument errorCode The error code.
|
|
36
|
+
* @argument errorString The error string.
|
|
37
|
+
*/
|
|
38
|
+
ChangeImageSize(
|
|
39
|
+
index: number,
|
|
40
|
+
width: number,
|
|
41
|
+
height: number,
|
|
42
|
+
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
43
|
+
successCallback?: () => void,
|
|
44
|
+
failureCallback?: (
|
|
45
|
+
errorCode: number,
|
|
46
|
+
errorString: string
|
|
47
|
+
) => void
|
|
48
|
+
): void | boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Change the DPI (dots per inch) of the specified image.
|
|
51
|
+
* @param index Specify the image.
|
|
52
|
+
* @param xResolution Specify the horizontal DPI.
|
|
53
|
+
* @param yResolution Specify the vertical DPI.
|
|
54
|
+
* @param resample Whether to resample the image.
|
|
55
|
+
* @param method Specify the algorithm for the change.
|
|
56
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
57
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
58
|
+
* @argument errorCode The error code.
|
|
59
|
+
* @argument errorString The error string.
|
|
60
|
+
*/
|
|
61
|
+
SetDPI(
|
|
62
|
+
index: number,
|
|
63
|
+
xResolution: number,
|
|
64
|
+
yResolution: number,
|
|
65
|
+
resample: boolean,
|
|
66
|
+
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
67
|
+
successCallback?: () => void,
|
|
68
|
+
failureCallback?: (
|
|
69
|
+
errorCode: number,
|
|
70
|
+
errorString: string
|
|
71
|
+
) => void
|
|
72
|
+
): void | boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Convert the specified image to black & white.
|
|
75
|
+
* @param index Specify the image.
|
|
76
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
77
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
78
|
+
* @argument errorCode The error code.
|
|
79
|
+
* @argument errorString The error string.
|
|
80
|
+
*/
|
|
81
|
+
ConvertToBW(
|
|
82
|
+
index: number,
|
|
83
|
+
successCallback?: () => void,
|
|
84
|
+
failureCallback?: (
|
|
85
|
+
errorCode: number,
|
|
86
|
+
errorString: string
|
|
87
|
+
) => void
|
|
88
|
+
): void | boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Convert the specified image to grayscale.
|
|
91
|
+
* @param index Specify the image.
|
|
92
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
93
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
94
|
+
* @argument errorCode The error code.
|
|
95
|
+
* @argument errorString The error string.
|
|
96
|
+
*/
|
|
97
|
+
ConvertToGrayScale(
|
|
98
|
+
index: number,
|
|
99
|
+
successCallback?: () => void,
|
|
100
|
+
failureCallback?: (
|
|
101
|
+
errorCode: number,
|
|
102
|
+
errorString: string
|
|
103
|
+
) => void
|
|
104
|
+
): void | boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Invert the colour of the pixels on the specified image.
|
|
107
|
+
* @param index Specify the image.
|
|
108
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
109
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
110
|
+
* @argument errorCode The error code.
|
|
111
|
+
* @argument errorString The error string.
|
|
112
|
+
*/
|
|
113
|
+
Invert(
|
|
114
|
+
index: number,
|
|
115
|
+
successCallback?: () => void,
|
|
116
|
+
failureCallback?: (
|
|
117
|
+
errorCode: number,
|
|
118
|
+
errorString: string
|
|
119
|
+
) => void
|
|
120
|
+
): void | boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Change the width of the specified image by adding a margin or removing part of the image.
|
|
123
|
+
* @param index Specify the image.
|
|
124
|
+
* @param width Specify the new width.
|
|
125
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
126
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
127
|
+
* @argument errorCode The error code.
|
|
128
|
+
* @argument errorString The error string.
|
|
129
|
+
*/
|
|
130
|
+
SetImageWidth(
|
|
131
|
+
index: number,
|
|
132
|
+
width: number,
|
|
133
|
+
successCallback?: () => void,
|
|
134
|
+
failureCallback?: (
|
|
135
|
+
errorCode: number,
|
|
136
|
+
errorString: string
|
|
137
|
+
) => void
|
|
138
|
+
): void | boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Flip the specified image.
|
|
141
|
+
* @param index Specify the image.
|
|
142
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
143
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
144
|
+
* @argument errorCode The error code.
|
|
145
|
+
* @argument errorString The error string.
|
|
146
|
+
*/
|
|
147
|
+
Flip(
|
|
148
|
+
index: number,
|
|
149
|
+
successCallback?: () => void,
|
|
150
|
+
failureCallback?: (
|
|
151
|
+
errorCode: number,
|
|
152
|
+
errorString: string
|
|
153
|
+
) => void
|
|
154
|
+
): void | boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Mirror the specified image.
|
|
157
|
+
* @param index Specify the image.
|
|
158
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
159
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
160
|
+
* @argument errorCode The error code.
|
|
161
|
+
* @argument errorString The error string.
|
|
162
|
+
*/
|
|
163
|
+
Mirror(
|
|
164
|
+
index: number,
|
|
165
|
+
successCallback?: () => void,
|
|
166
|
+
failureCallback?: (
|
|
167
|
+
errorCode: number,
|
|
168
|
+
errorString: string
|
|
169
|
+
) => void
|
|
170
|
+
): void | boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Rotate the specified image 90 degrees counterclockwise.
|
|
173
|
+
* @param index Specify the image.
|
|
174
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
175
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
176
|
+
* @argument errorCode The error code.
|
|
177
|
+
* @argument errorString The error string.
|
|
178
|
+
*/
|
|
179
|
+
RotateLeft(
|
|
180
|
+
index: number,
|
|
181
|
+
successCallback?: () => void,
|
|
182
|
+
failureCallback?: (
|
|
183
|
+
errorCode: number,
|
|
184
|
+
errorString: string
|
|
185
|
+
) => void
|
|
186
|
+
): void | boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Rotate the specified image 90 degrees clockwise.
|
|
189
|
+
* @param index Specify the image.
|
|
190
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
191
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
192
|
+
* @argument errorCode The error code.
|
|
193
|
+
* @argument errorString The error string.
|
|
194
|
+
*/
|
|
195
|
+
RotateRight(
|
|
196
|
+
index: number,
|
|
197
|
+
successCallback?: () => void,
|
|
198
|
+
failureCallback?: (
|
|
199
|
+
errorCode: number,
|
|
200
|
+
errorString: string
|
|
201
|
+
) => void
|
|
202
|
+
): void | boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Rotate the specified image by the specified angle.
|
|
205
|
+
* @param index Specify the image.
|
|
206
|
+
* @param angle Specify the angle.
|
|
207
|
+
* @param keepSize Whether to keep the original size.
|
|
208
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
209
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
210
|
+
* @argument errorCode The error code.
|
|
211
|
+
* @argument errorString The error string.
|
|
212
|
+
*/
|
|
213
|
+
Rotate(
|
|
214
|
+
index: number,
|
|
215
|
+
angle: number,
|
|
216
|
+
keepSize: boolean,
|
|
217
|
+
successCallback?: () => void,
|
|
218
|
+
failureCallback?: (
|
|
219
|
+
errorCode: number,
|
|
220
|
+
errorString: string
|
|
221
|
+
) => void
|
|
222
|
+
): void | boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Rotate the specified image by the specified angle.
|
|
225
|
+
* @param index Specify the image.
|
|
226
|
+
* @param angle Specify the angle.
|
|
227
|
+
* @param keepSize Whether to keep the original size.
|
|
228
|
+
* @param method Specify the algorithm for the change.
|
|
229
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
230
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
231
|
+
* @argument errorCode The error code.
|
|
232
|
+
* @argument errorString The error string.
|
|
233
|
+
*/
|
|
234
|
+
RotateEx(
|
|
235
|
+
index: number,
|
|
236
|
+
angle: number,
|
|
237
|
+
keepSize: boolean,
|
|
238
|
+
method: Dynamsoft.EnumDWT_InterpolationMethod | number,
|
|
239
|
+
successCallback?: () => void,
|
|
240
|
+
failureCallback?: (
|
|
241
|
+
errorCode: number,
|
|
242
|
+
errorString: string
|
|
243
|
+
) => void
|
|
244
|
+
): void | boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Crop the specified image using the specified coordinates.
|
|
247
|
+
* @param index Specify the image.
|
|
248
|
+
* @param left Specify the rectangle (leftmost coordinate).
|
|
249
|
+
* @param top Specify the rectangle (topmost coordinate).
|
|
250
|
+
* @param right Specify the rectangle (rightmost coordinate).
|
|
251
|
+
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
252
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
253
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
254
|
+
* @argument errorCode The error code.
|
|
255
|
+
* @argument errorString The error string.
|
|
256
|
+
*/
|
|
257
|
+
Crop(
|
|
258
|
+
index: number,
|
|
259
|
+
left: number,
|
|
260
|
+
top: number,
|
|
261
|
+
right: number,
|
|
262
|
+
bottom: number,
|
|
263
|
+
successCallback?: () => void,
|
|
264
|
+
failureCallback?: (
|
|
265
|
+
errorCode: number,
|
|
266
|
+
errorString: string
|
|
267
|
+
) => void
|
|
268
|
+
): void | boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Erase a rectangular area from the specified image.
|
|
271
|
+
* @param index Specify the image.
|
|
272
|
+
* @param left Specify the rectangle (leftmost coordinate).
|
|
273
|
+
* @param top Specify the rectangle (topmost coordinate).
|
|
274
|
+
* @param right Specify the rectangle (rightmost coordinate).
|
|
275
|
+
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
276
|
+
* @param successCallback A callback function that is executed if the request succeeds.
|
|
277
|
+
* @param failureCallback A callback function that is executed if the request fails.
|
|
278
|
+
* @argument errorCode The error code.
|
|
279
|
+
* @argument errorString The error string.
|
|
280
|
+
*/
|
|
281
|
+
Erase(
|
|
282
|
+
index: number,
|
|
283
|
+
left: number,
|
|
284
|
+
top: number,
|
|
285
|
+
right: number,
|
|
286
|
+
bottom: number,
|
|
287
|
+
successCallback?: () => void,
|
|
288
|
+
failureCallback?: (
|
|
289
|
+
errorCode: number,
|
|
290
|
+
errorString: string
|
|
291
|
+
) => void
|
|
292
|
+
): void | boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Copy the specified image to the clipboard of the operating system.
|
|
295
|
+
* @param index Specify the image.
|
|
296
|
+
*/
|
|
297
|
+
CopyToClipboard(index: number): boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Cut the specified image to the clipboard of the operating system.
|
|
300
|
+
* @param index Specify the image.
|
|
301
|
+
*/
|
|
302
|
+
CutToClipboard(index: number): boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Crop a rectangular area from the specified image to the clipboard of the operating system.
|
|
305
|
+
* @param index Specify the image.
|
|
306
|
+
* @param left Specify the rectangle (leftmost coordinate).
|
|
307
|
+
* @param top Specify the rectangle (topmost coordinate).
|
|
308
|
+
* @param right Specify the rectangle (rightmost coordinate).
|
|
309
|
+
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
310
|
+
*/
|
|
311
|
+
CropToClipboard(
|
|
312
|
+
index: number,
|
|
313
|
+
left: number,
|
|
314
|
+
top: number,
|
|
315
|
+
right: number,
|
|
316
|
+
bottom: number
|
|
317
|
+
): boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Cut a rectangular area from the specified image to the clipboard of the operating system.
|
|
320
|
+
* @param index Specify the image.
|
|
321
|
+
* @param left Specify the rectangle (leftmost coordinate).
|
|
322
|
+
* @param top Specify the rectangle (topmost coordinate).
|
|
323
|
+
* @param right Specify the rectangle (rightmost coordinate).
|
|
324
|
+
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
325
|
+
*/
|
|
326
|
+
CutFrameToClipboard(
|
|
327
|
+
index: number,
|
|
328
|
+
left: number,
|
|
329
|
+
top: number,
|
|
330
|
+
right: number,
|
|
331
|
+
bottom: number
|
|
332
|
+
): boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Return or set the fill colour for the empty area on an image that has been cut/cropped/erased.
|
|
335
|
+
*/
|
|
336
|
+
BackgroundFillColor: number;
|
|
337
|
+
/**
|
|
338
|
+
* [Deprecation] Add text on an image.
|
|
339
|
+
* [Alternative] Annotation feature to be added in a later version.
|
|
340
|
+
* @param index the index of the image that you want to add text to.
|
|
341
|
+
* @param x the x coordinate for the text.
|
|
342
|
+
* @param y the y coordinate for the text.
|
|
343
|
+
* @param text the content of the text that you want to add.
|
|
344
|
+
* @param txtColor the color for the text.
|
|
345
|
+
* @param backgroundColor the background color.
|
|
346
|
+
* @param backgroundRoundRadius ranging from 0 to 0.5. Please NOTE that MAC version does not support this parameter.
|
|
347
|
+
* @param backgroundOpacity specifies the opacity of the background of the added text, it ranges from 0 to 1.0. Please NOTE that Mac version only supports value 0 and 1
|
|
348
|
+
*/
|
|
349
|
+
AddText(
|
|
350
|
+
index: number,
|
|
351
|
+
x: number,
|
|
352
|
+
y: number,
|
|
353
|
+
text: string,
|
|
354
|
+
txtColor: number,
|
|
355
|
+
backgroundColor: number,
|
|
356
|
+
backgroundRoundRadius: number,
|
|
357
|
+
backgroundOpacity: number
|
|
358
|
+
): boolean;
|
|
359
|
+
/**
|
|
360
|
+
* [Deprecation] Create the font for adding text using the method AddText.
|
|
361
|
+
* [Alternative] Annotation feature to be added in a later version.
|
|
362
|
+
* @param height Specifies the desired height (in logical units) of the font.
|
|
363
|
+
* The absolute value of nHeight must not exceed 16,384 device units after it is converted.
|
|
364
|
+
* For all height comparisons, the font mapper looks for the largest font that does not
|
|
365
|
+
* exceed the requested size or the smallest font if all the fonts exceed the requested size.
|
|
366
|
+
* @param width Specifies the average width (in logical units) of characters in the font.
|
|
367
|
+
* If Width is 0, the aspect ratio of the device will be matched against the digitization
|
|
368
|
+
* aspect ratio of the available fonts to find the closest match, which is determined by the
|
|
369
|
+
* absolute value of the difference.
|
|
370
|
+
* @param escapement Specifies the angle (in 0.1-degree units) between the escapement vector
|
|
371
|
+
* and the x-axis of the display surface. The escapement vector is the line through the origins
|
|
372
|
+
* of the first and last characters on a line. The angle is measured counterclockwise from the x-axis.
|
|
373
|
+
* @param orientation Specifies the angle (in 0.1-degree units) between the baseline of a character
|
|
374
|
+
* and the x-axis.The angle is measured counterclockwise from the x-axis for coordinate systems
|
|
375
|
+
* in which the y-direction is down and clockwise from the x-axis for coordinate systems in which
|
|
376
|
+
* the y-direction is up.
|
|
377
|
+
* @param weight Specifies the font weight (in inked pixels per 1000). The described valuesare
|
|
378
|
+
* approximate; the actual appearance depends on the typeface. Some fonts haveonly FW_NORMAL,
|
|
379
|
+
* FW_REGULAR, and FW_BOLD weights. If FW_DONTCARE is specified, a default weight is used.
|
|
380
|
+
* @param italic Specifies an italic font if set to TRUE.
|
|
381
|
+
* @param underline Specifies an underlined font if set to TRUE.
|
|
382
|
+
* @param strikeOut A strikeout font if set to TRUE.
|
|
383
|
+
* @param charSet Specifies the font's character set. The OEM character set is system-dependent.
|
|
384
|
+
* Fonts with other character sets may exist in the system. An application that uses a font with
|
|
385
|
+
* an unknown character set must not attempt to translate or interpret strings that are to be
|
|
386
|
+
* rendered with that font.
|
|
387
|
+
* @param outputPrecision Specifies the desired output precision. The output precision defines
|
|
388
|
+
* how closely the output must match the requested font's height, width, character orientation,
|
|
389
|
+
* escapement, and pitch.
|
|
390
|
+
* @param clipPrecision Specifies the desired clipping precision. The clipping precision defines
|
|
391
|
+
* how to clip characters that are partially outside the clipping region.
|
|
392
|
+
* @param quality Specifies the font's output quality, which defines how carefully the GDI must
|
|
393
|
+
* attempt to match the logical-font attributes to those of an actual physical font.
|
|
394
|
+
* @param pitchAndFamily The pitch and family of the font.
|
|
395
|
+
* @param faceName The typeface name, the length of this string must not exceed 32 characters,
|
|
396
|
+
* including the terminating null character.
|
|
397
|
+
*/
|
|
398
|
+
CreateTextFont(
|
|
399
|
+
height: number,
|
|
400
|
+
width: number,
|
|
401
|
+
escapement: number,
|
|
402
|
+
orientation: number,
|
|
403
|
+
weight: number,
|
|
404
|
+
italic: number,
|
|
405
|
+
underline: number,
|
|
406
|
+
strikeOut: number,
|
|
407
|
+
charSet: number,
|
|
408
|
+
outputPrecision: number,
|
|
409
|
+
clipPrecision: number,
|
|
410
|
+
quality: number,
|
|
411
|
+
pitchAndFamily: number,
|
|
412
|
+
faceName: string
|
|
413
|
+
): boolean;
|
|
414
|
+
/**
|
|
415
|
+
* [Deprecation] Decorates image of a specified index in buffer with rectangles of transparent color.
|
|
416
|
+
* [Alternative] Annotation feature to be added in a later version.
|
|
417
|
+
* @param index specifies the index of image in buffer. The index is 0-based.
|
|
418
|
+
* @param left Specify the rectangle (leftmost coordinate).
|
|
419
|
+
* @param top Specify the rectangle (topmost coordinate).
|
|
420
|
+
* @param right Specify the rectangle (rightmost coordinate).
|
|
421
|
+
* @param bottom Specify the rectangle (bottommost coordinate).
|
|
422
|
+
* @param color Specifies the fill color of the rectangle. The byte-ordering of the RGB value is 0xBBGGRR. BB represents blue, GG represents green, RR represents red.
|
|
423
|
+
* @param fOpacity Specifies the opacity of the rectangle. The value represents opacity. 1.0 is 100% opaque and 0.0 is totally transparent.
|
|
424
|
+
*/
|
|
425
|
+
OverlayRectangle(
|
|
426
|
+
index: number,
|
|
427
|
+
left: number,
|
|
428
|
+
top: number,
|
|
429
|
+
right: number,
|
|
430
|
+
bottom: number,
|
|
431
|
+
color: number,
|
|
432
|
+
fOpacity: number
|
|
433
|
+
): boolean;
|
|
434
|
+
}
|