LTwain::AcquireList

#include "ltwrappr.h"

virtual L_INT LTwain::AcquireList (hBitmap, lpszTemplateFile, uFlags)

virtual L_INT LTwain::AcquireList (BitmapList, lpszTemplateFile, uFlags)

HBITMAPLIST hBitmap;

/* handle to the list of bitmaps */

LBitmapList * BitmapList;

/* pointer to an LBitmapList object */

L_TCHAR * lpszTemplateFile;

/* template file name */

L_UINT uFlags;

/* optional flags */

Acquires one or more pages from a TWAIN source and stores the images in the specified bitmap list.

Parameter

Description

hBitmap

Handle to the list of bitmaps acquired from the selected TWAIN source.

BitmapList

Pointer to an LBitmapList object that references the list of bitmaps acquired from the selected TWAIN source.

lpszTemplateFile

Character string that contains the name of the template file in which the TWAIN source capability settings will be saved. If this parameter is NULL, the TWAIN capability settings used will not be saved to a template file. For more information on determining/setting the capabilities for a TWAIN source, refer to Getting and Settings Capabilities.

uFlags

Flags that indicate whether to display the manufacturer's user interface. Possible values are:

 

Value

Meaning

 

LTWAIN_SHOW_USER_INTERFACE

[1] Shows the manufacturer's user interface as modeless.

 

LTWAIN_MODAL_USER_INTERFACE

[2] Shows the manufacturer's user interface as a modal dialog. Works only if the LTWAIN_SHOW_USER_INTERFACE flag is set.

 

LTWAIN_KEEPOPEN

[20] Keep the TWAIN data source open after scanning.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function acquires one or more images from a TWAIN source and stores them in the specified bitmap list. If the user wants to acquire one or more images and process each one individually, he or she should use the LTwain::Acquire function an provide an LTwain::BitmapCallBack function for processing each image.

The number of pages to acquire can be determined by getting the TWAIN source's capabilities. To change the number of pages to acquire, set the appropriate capability to the desired number.

Required DLLs and Libraries

LTTWN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LTwain::Acquire, LTwain::InitSession, LTwain::EndSession, LTwain::OpenTemplateFile, LTwain::CloseTemplateFile, LTwain::TemplateDlg, LTwain::AddCapabilityToFile, LTwain::GetNumofCapsInFile, LTwain::GetCapabilityFromFile.

Topics:

How to Acquire from the TWAIN Source

 

TWAIN Functionality: Property Functions.

Example

For an example, refer to LTwain::IsAvailable.