Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS TWAIN C++ Class Library Help

Getting and Setting Capabilities

Show in webframe

Each TWAIN source may support a number of capabilities. These capabilities dictate the behavior of the TWAIN source. Before acquiring images from the selected TWAIN source, the user may wish to examine and change the capability settings for that source.

It is possible to check whether the 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 http://support.leadtools.com/supportportal/cs/forums/3781/showpost.aspx.

LEADTOOLS provides both low-level and high-level functions for getting and setting capabilities. The low-level functions get and set capabilities individually. The high-level functions let the user get and set specific capabilities, either singularly, or in groups.

Low-Level:

High-Level:

LTwain::GetResolution

LTwain::GetImageFrame

LTwain::GetImageUnit

LTwain::GetImageBitsPerPixel

LTwain::SetResolution

LTwain::SetImageFrame

LTwain::SetImageUnit

LTwain::SetImageBitsPerPixel

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

To set the custom data of the TWAIN data source, call the LTwain::SetCustomDSData function, which is also loads the data from a file.

When working with TW_CAPABILITY structures it may be necessary to create a container associated with that structure. For more information on containers, refer to How to Work with the Containers.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.