|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +noTitleIndex: true |
| 4 | +needAutoGenerateSidebar: true |
| 5 | +title: How to use pure WIA source instead of WIATWAIN source from version 18.2? |
| 6 | +keywords: Dynamic Web TWAIN, Capture/ Image Source, WIA |
| 7 | +breadcrumbText: How to use pure WIA source instead of WIATWAIN source? |
| 8 | +description: How to use pure WIA source instead of WIATWAIN source? |
| 9 | +permalink: /faq/use-wia-insteadof-wiatwain.html |
| 10 | +--- |
| 11 | + |
| 12 | +# Capture/Image Source |
| 13 | + |
| 14 | +## How to use pure WIA source instead of WIATWAIN source from version 18.2? |
| 15 | + |
| 16 | +As of Dynamic Web TWAIN version 18.2, we start to support WIA protocol officially. |
| 17 | + |
| 18 | +### WIA |
| 19 | + |
| 20 | +WIA stands for Windows Image Acquisition which is a Microsoft driver model for capturing digital images from various devices, such as scanners, cameras and other imaging devices. |
| 21 | + |
| 22 | +Compared with TWAIN, the WIA protocol is built-in supported by Windows OS. No extra drivers needed for WIA-supported devices. |
| 23 | + |
| 24 | +WIA offers standardized hardware compatibility and a stable driver environment, making it easier to integrate imaging capabilities into the web scanning applications. |
| 25 | + |
| 26 | + |
| 27 | +### Difference between `WIASCANNER` and `WIATWAINSCANNER` |
| 28 | + |
| 29 | +We add a new Enumaration `WIASCANNER` to [`Dynamsoft.DWT.EnumDWT_DeviceType`](https://www.dynamsoft.com/web-twain/docs/info/api/Dynamsoft_Enum.html?ver=latest&&cVer=true#dynamsoftdwtenumdwt_devicetype) to support WIA protocol. There is another Enumaration named `WIATWAINSCANNER` which is a WIA Source mapped through the TWAIN protocol after packaging by Microsoft and it was used to support WIA in the previous version. |
| 30 | + |
| 31 | +If you are using `WIATWAINSCANNER` before and would like to use `WIASCANNER` from version 18.2 instead, you need to modify the APIs used in your code accordingly. |
| 32 | + |
| 33 | +| `WIASCANNER` | `WIATWAINSCANNER`| |
| 34 | +|:-|:-| |
| 35 | +| [GetDeviceAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#getdevicesasync) | [GetSourceNames()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#getsourcenames), [GetSourceNamesAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#getsourcenamesasync)| |
| 36 | +| [SelectDeviceAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#selectdeviceasync) | [SelectSourceByIndex()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#selectsourcebyindex), [SelectSourceByIndexAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#selectsourcebyindexasync) | |
| 37 | +| [SelectSourceAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#selectsourceasync) | [SelectSource()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#selectsource) | |
| 38 | +| [AcquireImageAsync()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimageasync) | [AcquireImage()](https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimage) | |
| 39 | + |
| 40 | +*`WIATWAINSCANNER` is still available.* |
0 commit comments