Skip to content

Commit 4e59936

Browse files
committed
update
1 parent 25aedb7 commit 4e59936

File tree

2 files changed

+28
-40
lines changed

2 files changed

+28
-40
lines changed

info/api/WebTwain_Acquire.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,26 +92,11 @@ AcquireImage(
9292
successCallBack?: () => void,
9393
failureCallBack?: (deviceConfiguration?: DeviceConfiguration, errorCode: number, errorString: string) => void
9494
): void;
95-
96-
interface DeviceConfiguration {
97-
IfShowUI?: boolean; //Whether to show the built-in User Interface from the device vendor
98-
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType | number | string; //Whether to scan in color, grey or black & white
99-
Resolution?: number; //Measured by dots per pixel (DPI)
100-
IfFeederEnabled?: boolean; //Whether to use the document feeder or the flatbed of the device
101-
IfDuplexEnabled?: boolean; //Whether to scan one side or both sides
102-
IfDisableSourceAfterAcquire?: boolean; //Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
103-
IfGetImageInfo?: boolean; //Whether to retrieve information about the image after it's transferred.
104-
IfGetExtImageInfo?: boolean; //Whether to retrieve extended information about the image after it's transferred.
105-
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
106-
SelectSourceByIndex?: number; //Specify a source by its index.
107-
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
108-
PageSize?: Dynamsoft.DWT.EnumDWT_CapSupportedSizes | number; //Specify page size
109-
}
11095
```
11196

11297
**Parameters**
11398

114-
`deviceConfiguration`: Configuration for the acquisition.
99+
`deviceConfiguration`: Configuration for the acquisition. Please refer to [Interface]({{site.info}}api/Interfaces.html#DeviceConfiguration).
115100

116101
`successCallback`: A callback function that is executed if the request succeeds.
117102

@@ -4680,7 +4665,7 @@ DWObject.GetDevicesAsync().then((deviceList)=>{
46804665

46814666
**Parameters**
46824667

4683-
`device`: the device object. Please refer to [Device]({{site.info}}api/Interfaces.html#device)
4668+
`device`: the device object. Please refer to [Interface]({{site.info}}api/Interfaces.html#device).
46844669

46854670
**Availability**
46864671

@@ -4722,7 +4707,7 @@ AcquireImageAsync(deviceConfiguration?: DeviceConfiguration): Promise< boolean>;
47224707

47234708
**Parameters**
47244709

4725-
`deviceConfiguration`: The device configuration
4710+
`deviceConfiguration`: The device configuration. Please refer to [Interface]({{site.info}}api/Interfaces.html#DeviceConfiguration).
47264711

47274712
**Availability**
47284713

info/api/interfaces.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permalink: /info/api/interfaces.html
1313
| |
1414
| :----- |
1515
| [`Device`](#device) |
16+
| [`DeviceConfiguration`](#DeviceConfiguration) |
1617

1718
---
1819

@@ -31,25 +32,27 @@ interface Device{
3132
}
3233
```
3334

34-
**Availability**
35-
<div class="availability">
36-
<table>
37-
38-
<tr>
39-
<td align="center">ActiveX</td>
40-
<td align="center">H5(Windows)</td>
41-
<td align="center">H5(macOS/TWAIN)</td>
42-
<td align="center">H5(macOS/ICA)</td>
43-
<td align="center">H5(Linux)</td>
44-
</tr>
45-
46-
<tr>
47-
<td align="center">not supported</td>
48-
<td align="center">v18.0+</td>
49-
<td align="center">v18.0+</td>
50-
<td align="center">v18.0+</td>
51-
<td align="center">v18.0+</td>
52-
</tr>
53-
54-
</table>
55-
</div>
35+
---
36+
37+
## DeviceConfiguration
38+
39+
**Syntax**
40+
41+
```typescript
42+
interface DeviceConfiguration {
43+
IfShowUI?: boolean; //Whether to show the built-in User Interface from the device vendor
44+
PixelType?: Dynamsoft.DWT.EnumDWT_PixelType | number | string; //Whether to scan in color, grey or black & white
45+
Resolution?: number; //Measured by dots per pixel (DPI)
46+
IfFeederEnabled?: boolean; //Whether to use the document feeder or the flatbed of the device
47+
IfDuplexEnabled?: boolean; //Whether to scan one side or both sides
48+
IfDisableSourceAfterAcquire?: boolean; //Whether to close the built-in User Interface after aquisition. Only valid when {IfShowUI} is true.
49+
IfGetImageInfo?: boolean; //Whether to retrieve information about the image after it's transferred.
50+
IfGetExtImageInfo?: boolean; //Whether to retrieve extended information about the image after it's transferred.
51+
extendedImageInfoQueryLevel?: Dynamsoft.DWT.EnumDWT_ExtImageInfo | number; //How much extended information is retrieved. Only valid when {IfGetExtImageInfo} is true.
52+
SelectSourceByIndex?: number; //Specify a source by its index.
53+
IfCloseSourceAfterAcquire?: boolean; //Whether to close the data source after aquisition. Default: false.
54+
PageSize?: Dynamsoft.DWT.EnumDWT_CapSupportedSizes | number; //Specify page size
55+
}
56+
```
57+
58+
---

0 commit comments

Comments
 (0)