How to Acquire from the TWAIN Source

After establishing a TWAIN session, selecting a TWAIN source, and setting the desired capabilities of the TWAIN source, the system is ready to acquire images or image data from that source. LEADTOOLS provides the following functions for acquiring images and image data from a TWAIN source:

The functions listed above can acquire images in the following transfer modes:

Transfer Mode Description
Native Gets the bitmaps being scanned into the memory as a whole.
Memory Buffered Gets images from the source as strips of data. These strips can be merged to get the whole image.
File Gets the images from the source to a disk file.

Stopping Image Acquisition

To stop acquisition started by the LTwain::Acquire function, call LTwain::CancelAcquire inside the LTwain::BitmapCallBack callback.

To stop acquisition started by the LTwain::AcquireMulti or LTwain::FastAcquire functions, call LTwain::CancelAcquire inside the LTwain::AcquireCallBack.

To stop acquiring images only from the feeder of the TWAIN source using the LTwain::Acquire function, call the LTwain::StopFeeder within the LTwain::BitmapCallBack function when it is fired.

To stop acquiring images only from the feeder of the TWAIN source using the LTwain::AcquireMulti or LTwain::FastAcquire functions, call LTwain::StopFeeder within the LTwain::AcquireCallBack callback when it is fired.

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help