seqInsert
Top  Previous  Next

seqInsert ( integer Sequence, integer Image, integer Index [, integer Delay ] )

Use this function to insert an image or sequence to a specified place of a sequence. The size and format of the image to be added should correspond to those of the sequence.

Parameters
 
Sequence  
An integer between 1 and 116 specifying the number of the sequence. Values in the range of 100-116 correspond to hidden sequences.  
 
Input  
An integer between 1 and 116 specifying the number of the image or sequence to be inserted into the Sequence. Values in the range of 100-116 correspond to hidden images.  
 
Index  
An optional integer specifying the index of the new frame in the sequence. If this value is zero, the image will be inserted to the beginning of the sequence.  
 
Delay  
An optional integer specifying the delay between the preceding frame of the sequence and the newly added frame, in milliseconds. If this parameter is omitted, the delay will be set to the one for the preceding frame of the sequence.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
ERR_BADFORMAT  
 
The image's format differs from the sequence's format.  
 
Example

This set of statements grabs a sequence from the video device, then captures a single frame and inserts it in the middle of the sequence:  
 
grabSeq(1,16,100)  
grabIm (2)  
seqInsert (1,2,7)