split
Top  Previous  Next

split ( integer Input, integer Output, integer Columns, integer Rows )

Use this function to split an image into several images. The image is split into approximately equal parts vertically and horizontally.

Parameters
 
Input  
 
An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Output  
 
An integer between 1 and 116 specifying the number of the first image frame, starting from which the output images will be created. The rest of the output images will be placed to the frames with the numbers following this value, in the order from left to right, top to bottom.  
 
Columns  
 
A positive integer specifying the number of columns into which the input image will be split.  
 
Rows  
 
A positive integer specifying the number of rows into which the input image will be split.  
 
Error flags

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

Example

This set of statements continuously grabs an image to the DMA frame and splits it with a 3x2 grid into six equal images, displaying them in real time.  
 
do  
  grabim (0)  
  split(0,1,2,2)  
loop