Acquire method (Twain Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int Acquire (unsigned uFlags);

Delphi Syntax

Function Acquire (uFlags: L_UINT ): L_INT;

Overview

Refer to How to Acquire from the Twain Source.

Remarks

Acquires one or more images from a TWAIN source.

When acquiring multiple pages, the OnAcquirePageEvent Event receives the scanned images through the Bitmap parameter. The user can then process these images as desired within the event.

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.

See Also

Elements:

InitSession method, EndSession method, OpenTemplateFile method, CloseTemplateFile method, ShowTemplateDlg method, AddCapabilityToFile method, GetNumOfCapsInFile method, GetCapabilityFromFile method.

Topics:

TWAIN Functionality: Images.