Skip to content

Commit 430a8a0

Browse files
committed
Update interfaces.md
1 parent 8544f1d commit 430a8a0

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

info/api/interfaces.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ permalink: /info/api/interfaces.html
1111
# Interfaces
1212

1313
| |
14-
| :----- |
15-
| [`Device`](#device) |
14+
|:-|:-|
15+
| [`Device`](#device) | [`DeviceConfiguration`](#DeviceConfiguration) |
1616

1717
---
1818

@@ -31,25 +31,27 @@ interface Device{
3131
}
3232
```
3333

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

0 commit comments

Comments
 (0)