twainGrab
Top  Previous  Next

twainGrab ( integer Output )

Use this function to capture a single image from the TWAIN device currently selected in ImageWarp. Unlike
twainAcquire, this function will not display the manufacturer's provided user interface.

Parameters
 
Output  
 
An integer between 1 and 116 specifying the number of the frame into which the image will be placed. Values in the range of 100-116 correspond to hidden frames.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example
 
twainGrab(1)  
 
Remarks

Some TWAIN devices do not support image grabbing without user interface. If you encounter problems with this command, use twainAcquire instead.  
 
Please note that TWAIN interface is inherently slow and might not work well in real-time applications. If your video device is supported by an alternative driver (such as WDM or IEEE-1394), use such a driver instead of TWAIN.