twainSeq  
Top  Previous  Next

twainSeq ( integer Output, integer Frames, integer Delay)

Use this function to capture a sequence from a TWAIN device currently selected in ImageWarp.

Parameters
 
Output  
 
An integer between 1 and 116 specifying the number of the workspace frame into which the sequence will be placed. Values in the range of 100-116 correspond to hidden frames.  
 
Frames  
 
A positive integer specifying the amount of video frames to be captured into the sequence.  
 
Delay  
 
A positive integer specifying the delay (in milliseconds) between consecutive video frames to be captured into the sequence.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example
 
The following operator will capture a sequence of 64 video frames with a five seconds interval between the frames:  
 
twainSeq(1, 64, 5000)  
 
Remark

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.