setProfilePos
Top  Previous  Next

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

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

Parameters
 
X0, Y0  
 
Positive integers specifying the coordinates of the top left corner of the Line profile 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 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
 
The following set of statements continuously captures an image and displays a live Line profile moving across the workspace:  
 
grabIm(1)  
showProfile()  
For J=0 To getWorkHeight()-200 Step 8  
For I=0 To getWorkWidth()-200 Step 8  
grabIm(1)  
setProfilePos(I,J)  
Next   
For I=800-200 To 0 Step -8  
grabIm(1)  
setProfilePos(I,J+4)  
Next   
Next  
 
Remark
 
For more information on the Line profile window refer to ImageWarp User's Guide.