GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutoScan Method
True to enable autoscan, else False.





In This Topic
TwainSetAutoScan Method (GdPictureImaging)
In This Topic
Tries to enable or disable the auto scan scanning capability. Setting this to TRUE gives the scanner permission to 'scan ahead'. i.e. to pull pages from the feeder and scan them before they have been requested. On high-speed scanners, you may have to enable auto scan to achieve the maximum scanning rate.
Syntax
'Declaration
 
Public Function TwainSetAutoScan( _
   ByVal AutoScan As Boolean _
) As Boolean
public bool TwainSetAutoScan( 
   bool AutoScan
)
public function TwainSetAutoScan( 
    AutoScan: Boolean
): Boolean; 
public function TwainSetAutoScan( 
   AutoScan : boolean
) : boolean;
public: bool TwainSetAutoScan( 
   bool AutoScan
) 
public:
bool TwainSetAutoScan( 
   bool AutoScan
) 

Parameters

AutoScan
True to enable autoscan, else False.

Return Value

TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
This will fail on most flatbeds & cameras, and some 'feeder' Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method.
See Also