CaptureCompleted
Top  Previous  Next

Description

This event is fired when the capture into the memory sequence or video file is stopped.

Syntax


[VB]
Private Sub objActiveDcam_CaptureCompleted(ByVal Frames As Long)


[C/C++]
HRESULT Fire_CaptureCompleted(long Frames);


Data Types
[VB]

Frames: long  


Parameters
[C/C++]

Frames  
The number of frames recorded.


Example


This VB example records 1000 frames into the memory sequence and uses the CaptureCompleted event to save it in an AVI file.


Private Sub
StartButton_Click()
ActiveDcam1.StartSequenceCapture 1000

End Sub

 
Private Sub
 ActiveDcam1_CaptureCompleted(ByVal Frames As Long)
SaveSequence "C:\\video.avi"
End Sub
 

Remarks


One of the following conditions must be met, before the CaptureCompleted event will be fired:
Capture has stopped automatically, because the specified number of frames has been acquired.  
Capture to a file has stopped automatically because the device is full.  
Capture has been stopped explicitly by calling the StopSequenceCapture or StopCapture methods.