Getting and Setting Capabilities

Each TWAIN source can support a number of capabilities, which dictate the behavior of the TWAIN source. Before acquiring images from the selected TWAIN source, it is possible to examine and change the capability settings for that source.

For instance, it is possible to check whether an installed scanner to the system supports certain capabilities. For more information, refer to How to Find Out Whether Your Scanner Supports Certain Capabilities Using Twacker, found on https://www.leadtools.com/support/forum/, search "How to Find Out Whether Your Scanner Supports Certain Capabilities Using Twacker".

The LEADTOOLS TWAIN toolkit provides both low-level and high-level functionality for getting and setting capabilities. The low-level functions get and set capabilities individually. The high-level functions are used to get and set specific capabilities, either singularly, or in groups.

Low-Level:

High-Level:

L_TwainGetResolution

L_TwainGetImageFrame

L_TwainGetImageUnit

L_TwainGetImageBitsPerPixel

L_TwainSetResolution

L_TwainSetImageFrame

L_TwainSetImageUnit

L_TwainSetImageBitsPerPixel

To get the custom data of TWAIN data source, call the L_TwainGetCustomDSData function, which is also saves the custom data to a file.

To update the custom data of TWAIN data source, call the L_TwainSetCustomDSData function, which is also loads the data from a file.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS TWAIN C API Help