Selecting the paper source

 

There are 2 types of scanners:

 

  1. Scanners with flat beds

  2. Scanner with automatic document feeders

 

If the scanner has an ADF (automatic document feeder) you can use software batch scanning. In this case you can scan papers to single page or multipage TIFF files. You can choose the compression of the file before scanning using the SetBatchScanImageCompression function/method of the BiTWAIN DLL/OCX. In this case, the scanner generates a DIB in memory and the BiTwain saves the DIB to the disk as a TIFF file. If the scanner is a high speed scanner with ADF, use the hardware batch scanning. In this case the scanner generates files according to ICAP_IMAGEFILEFORMAT. If image file format is a single page format, the files will be indexed (for example test00001.bmp, test00002.bmp etc). If the file format is a multipage format, such as TIFF, the scanner acquires pages directly to a multipage TIFF file.

 

If the scanner has a feeder and supports the CAP_FEEDERENABLED capability you can choose whether to scan from the feeder or not.

 

[C++]

 

/* Set the feeder */

 

int err = SetFeederEnable(TRUE);

 

if (err != TW_OK)

{

            // Error

}

else

{

            // Success

}

 

[VB]

 

‘ Set the feeder

 

Dim err As Long

 

err = BiTwain.SetFeederEnable(True)

 

If err = TW_OK Then

            ‘ Success

Else

            ‘ Error

End IF

 

[C#]

 

/* Set the feeder */

 

int err = BiTwain.SetFeederEnable(true);

 

if (err == (int)BITWAINLib.enumErrorCodes.TW_OK)

{

            // Success

}

else

{

            // Error

}