Viscom Software VideoCap ActiveX Control

SampleBufferMode Property

Description:   

Enables frame grabber mode to memory, Picturebox, Bitmpa Handle, clipboard or disable it.
 

Usage:   

VideoCap1.SampleBufferMode[= value]

Data Type:   

Integer

0- Disable Frame grabber
1 - Copy the buffer to Memory and Fire SampleBuffer event.
2 - Copy the buffer to Clipboard
3 - Return the RGB Variant if you call GetSampleBufferRGB method
4 - Copy the buffer to Picturebox and Fire SampleBuffer2 event. You may call SampleBuffer2Picture method  to get the Picture object.
5 - Copy the buffer to Bitmap Handle and Fire SampleBuffer2 event. You may call SampleBuffer2HBITMAP method to get the Bitmap Handle.


Example:   

This code demonstrates how to enable the frame grabber mode

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

Private Sub VideoCap1_SampleBuffer(ByVal iwidth As Integer, ByVal iheight As Integer, ByVal iSampleTime As Double, pBuffer As Long, ByVal iBufferLen As Long)
List1.AddItem Str(iwidth) + "x" + Str(iheight) + " resolution sample received"
End Sub