You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainIsAutoScanAvailable Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainIsAutoScanAvailable Method

Asks to the opened source if she can support the automatic scan capability. 

This capability is intended to boost the performance of a Source. 

The fundamental assumption behind AutoScan is that the device is able to capture images without waiting for the Application to request the image transfers. 

The default behavior is undefined, because some high volume devices are capable of anything but TwainIsAutoScanAvailable() return value being equal to TRUE.

C#
public Boolean TwainIsAutoScanAvailable();
Visual Basic
Public Function TwainIsAutoScanAvailable() As Boolean
Returns

TRUE if support the automatic scan, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4) 

To get the TWAIN state, use the TwainGetState() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.