Viscom Software VideoCap ActiveX Control

SampleBuffer2Picture Method

Description:   

Get the Picture object of sample buffer if set SampleBufferMode =4.

Usage:   

VideoCap1.SampleBuffer2Picture

Return Value:

Return the picture object.

Example:   

This Visual Basic example shows how to get 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