Viscom Software VideoCap ActiveX Control

SampleBuffer2HBITMAP  Method

Description:   

Get the HBitmap handle of sample buffer if set SampleBufferMode =5.

Usage:   

VideoCap1.SampleBuffer2HBITMAP

Return Value:

Return HBitmap handle.

Example:   

This Visual Basic example shows how to get the bitmap handle of sample buffer


Private Sub Form_Load()
VideoCap1.SampleBufferMode=5
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"
BitmapHandle = VideoCap1.SampleBuffer2HBITMAP
'do something

VideoCap1.DeleteImageHandle BitmapHandle

End Sub