|
| 1 | +--- |
| 2 | +layout: default-layout |
| 3 | +noTitleIndex: true |
| 4 | +needAutoGenerateSidebar: true |
| 5 | +title: How do I support WIA scanner drivers in my application? |
| 6 | +keywords: Dynamic Web TWAIN, Capture/ Image Source, WIA |
| 7 | +breadcrumbText: How do I support WIA scanner drivers in my application? |
| 8 | +description: How do I support WIA scanner drivers in my application? |
| 9 | +permalink: /faq/support-wia-scanner-drivers.html |
| 10 | +--- |
| 11 | + |
| 12 | +# Capture/Image Source |
| 13 | + |
| 14 | +## How do I support WIA scanner drivers in my application? |
| 15 | + |
| 16 | +Prior to Dynamic Web TWAIN version 18.2, WIA drivers are not supported and TWAIN drivers are recommended. Please refer to <a href="{{site.faq}}difference-between-Twain-and-wia.html" target="_blank">this article</a> for the differences between WIA and TWAIN drivers. |
| 17 | + |
| 18 | +As of Dynamic Web TWAIN version 18.2, we officially support WIA 2.0. By comparison, `WIA` can only control a very limited set of general capabilities of the device, while `TWAIN` can control all standard and even custom capabilities of the device. In addition, `WIA` has only two transfer modes (Memory, File), while `TWAIN` has three (Native, Memory, File). |
| 19 | + |
| 20 | +Since Dynamic Web TWAIN v18.0, we introduced a new set of scanner related APIs. |
| 21 | +To support WIA 2.0, |
| 22 | +- If your application is already using the new set of APIs below, no application change is required. |
| 23 | +- If not, replace the old APIs with the matching new APIs. |
| 24 | + |
| 25 | +| New APIs (supports WIA) | Old APIs | |
| 26 | +|:-|:-| |
| 27 | +| [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)| |
| 28 | +| [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) | |
| 29 | +| [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) | |
| 30 | +| [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) | |
| 31 | + |
| 32 | +### Difference between the WIASCANNER and WIATWAINSCANNER DeviceType |
| 33 | +To support the WIA protocol in v18.2+, we added 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) . The enumaration named `WIATWAINSCANNER` represents WIA source mapped through the TWAIN protocol after packaging by Microsoft. It was used in previous versions of Dynamic Web TWAIN and it will continue to be supported. |
0 commit comments