Viscom Software VideoCap ActiveX Control

DeleteSampleBufferPicture Method

Description:   

Delete the Picture object if you call SampleBuffer2Picture.

Usage:   

VideoCap1.DeleteSampleBufferPicture

Return Value:

No Return value.

Example:   

This Visual Basic example shows how to delete the picture object of sample buffer


Private Sub Form_Load()
VideoCap1.SampleBufferMode=4
VideoCap1.Start
End Sub

Private Sub VideoCap1_SampleBuffer2(ByVal iwidth As Integer, ByVal iheight As Integer, ByVal iSampleTime As Double, ByVal iBufferLen As Long)
List1.AddItem Str(iwidth) + "x" + Str(iheight) + " resolution sample received"
Picture1.Picture = VideoCap1.SampleBuffer2Picture
VideoCap1.DeleteSampleBufferPicture()

End Sub