ImageGear .NET v24.12 - Updated
Acquire(Int32,Boolean) Method




ImageGear24.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class > Acquire Method : Acquire(Int32,Boolean) Method
Count of pages to scan. -1 scans all available pages.
If the scanner has an AutomaticDocumentFeeder (ADF) Setting the enableFeeder to true will be treated as if the user called the Acquire(Int32) method. Setting the enableFeeder to false will turn off the ADF, and set the pageCount to 1.
Scan a single page or multiple pages from a scanner. Each page is saved to an ImageGear.Core.ImGearPage available in an AfterPage event.
Syntax
'Declaration
 
Public Overloads Sub Acquire( _
   ByVal pageCount As Integer, _
   ByVal enableFeeder As Boolean _
) 
'Usage
 
Dim instance As ImGearTWAIN
Dim pageCount As Integer
Dim enableFeeder As Boolean
 
instance.Acquire(pageCount, enableFeeder)
public void Acquire( 
   int pageCount,
   bool enableFeeder
)
public: void Acquire( 
   int pageCount,
   bool enableFeeder
) 
public:
void Acquire( 
   int pageCount,
   bool enableFeeder
) 

Parameters

pageCount
Count of pages to scan. -1 scans all available pages.
enableFeeder
If the scanner has an AutomaticDocumentFeeder (ADF) Setting the enableFeeder to true will be treated as if the user called the Acquire(Int32) method. Setting the enableFeeder to false will turn off the ADF, and set the pageCount to 1.
Exceptions
ExceptionDescription
Thrown if this method called while a connection with a data source is not open.
Remarks

Prior to calling this method:

In the AfterPage event, the scanned page is made available as an ImageGear.Core.ImGearPage class object.

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members
Overload List
ImGearDocument Class
OpenSource Method