How to Find Out Whether Your Scanner Supports Certain Capabilities
LEADTOOLS supports TWAIN 1.9, LEADTOOLS TWAIN provides functionality to negotiate capabilities and acquire data from TWAIN drivers.
To get list of supported capabilities for specific driver, you can use LEADTOOLS TWAIN functions or use Twacker utility (download twacker utility from http://www.twain.org/devfiles/twainkit.exe).
To use LEADTOOLS TWAIN functions, you need to call GetCapability for specific capability and see if it is supported or not.
Or use Twacker utility to get the supported capabilities, do the following steps:
- Install Twacker utility, and run “Twack_32.exe”
- Select “File” menu and then select “Select Source” menu item. Here a dialog box will appear, and select your scanner.
- Select “Special” menu and then select “1 Load/Open SM” menu item
- Select “Special” menu and then select “2 Open Source” menu item
- Select “Special” menu and then select “3 Send…” menu item, here a dialog box will appear.
- In the dialog that shows up, select “MSG_GET” in the MSG field.
- Select “CAP_SUPPORTEDCAPS” in the Capability field.
- Select “TWON_ARRAY” in the Container field.
- Press “Send” button.
- Here, a list of supported capabilities will appear in the “Structure:” box.
- The following image is what you will get:
Now, search for the capability you need, if the capability is not available in this list, then this capability is not supported. But if the capability is listed, you need to do the checked if required capability is implemented for your driver or not.
For example: you need to search for ICAP_COMPRESSION, do the following steps:
- Run “Twack_32.exe”.
- Select “File” menu and then select “Select Source” menu item. Here a dialog box will appear, and select your scanner.
- Select “Special” menu and then select “1 Load/Open SM” menu item
- Select “Special” menu and then select “2 Open Source” menu item
- Select “Special” menu and then select “3 Send…” menu item, here a dialog box will appear.
- In the dialog that shows up, select “MSG_GET” in the MSG field.
- Select “ICAP_COMPRESSION” in the Capability field.
- Select “TWON_ENUMERATION” in the Container field.
- Press “Send” button.
- Here, a list of values will appear in the “Structure:” box, notice the following:
- If the list of values contains only one item and the item is “NONE”, then there is no hardware compression for selected driver.
- If a message box appears, please read the message carefully, the message will return the Return Code, notice the return code is TWRC_FAILURE, and in this case the selected driver does not support the capability.
|