setVideoMode
Top  Previous  Next

setVideoMode ( int Index )

Use this function to select the current video mode by its index in the mode or format list of the current video driver.

Depending on the video driver, the function performs the following actions:

 
Simulation
Selects among several video formats (pixel depths) in the order they appear in the Format list of the Video Format dialog.

BitFlow Camera Interface
Selects among several video formats (pixel depths) in the order they appear in the Format list of the Video Format dialog.

FireWire (IEEE-1394)
Selects among available video modes (image size and pixel depth) in the order they appear in the Mode list of the Video Format dialog.

Video for Windows (VFW)
No action

DirectShow (WDM)
No action



Parameters
 
 
Index  
 
An integer specifying the zero-based mode index.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_NOTFOUND  
 
Video device not found.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example

This set of statements switches between two video modes every 10 seconds:  
 
showVideo(TRUE)  
Do  
 setVideoMode(0)  
 wait(10000)  
 setVideoMode(1)  
 wait(10000)  
Loop