Viscom Software VideoCap ActiveX Control

GetSampleBufferRGB Method

Description:   

Get the RGB Buffer if you set SampleBufferMode property to 3.

Usage:   

VideoCap1.GetSampleBufferRGB Parameter1,Parameter2

Parameter:

Parameter1- return the width of received buffer.  (Data Type: Integer)

Parameter2- return the height of received buffer. (Data Type: Integer)

Return Value:

Return RGB buffer. (Data Type: Variant)

Example:   

This code demonstrates how to get RGB buffer and return to Variant data type.

 Dim ImageArray As Variant
 Dim iWidth As Long
 Dim iHeight As Long

VideoCap1.SampleBufferMode=3
VideoCap1.Start
 ImageArray = VideoCap1.GetSampleBufferRGB(iWidth, iHeight)