setVideoPos
Top  Previous  Next

setVideoPos ( integer X0, integer Y0 [, integer Sx, integer Sy ] )

Use this function to change the size and position of the Video window in the workspace.

Parameters

X0, Y0  
 
Positive integers specifying the coordinates of the top left corner of the Video window relative to the top left corner of ImageWarp's client area.  
 
Sx, Sy  
 
Optional positive integers specifying the new width and height of the Video window. If these parameters are omitted, the window will maintain its current size.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
Example

This set of statements displays the Video window moving across the workspace:  
 
showVideo()  
For J=0 To getWorkHeight()-200 Step 16  
For I=0 To getWorkWidth()-200 Step 8  
Wait(10)  
setVideoPos(I,J)  
Next   
For I=800-200 To 0 Step -8  
setVideoPos(I,J+4)  
Next   
Next