
| Language: | Visual Basic 6 |
| Version: | 3.0.3 |
| Released on: | April 7, 2005 |
| Author: | IC Imaging Control Support Department |
| Requirements: | IC Imaging Control >2.1 Camera, converter or grabber with WDM Stream Class drivers. |
| |
The sample application's window looks as follows:

The program starts by activating a built-in dialog to select a device (.ShowDeviceSettingsDialog). Then, the device's live image data stream is displayed using LiveStart (see dialog on the right):
Private Sub Form_Load() ICImagingControl1.ShowDeviceSettingsDialog If Not ICImagingControl1.DeviceValid Then Unload Me Exit Sub End If ICImagingControl1.LiveStart cmdStopCapture.Enabled = False End Sub
Clicking on "Start Capture AVI", the user starts the AVI file's creation; clicking on "Stop Capture AVI" closes the AVI file:
Private Sub cmdStartCapture_Click() ICImagingControl1.LiveStop ICImagingControl1.AviStartCapture "video.avi", "DV Video Encoder" cmdStartCapture.Enabled = False cmdStopCapture.Enabled = True End Sub Private Sub cmdStopCapture_Click() ICImagingControl1.AviStopCapture ICImagingControl1.LiveStart cmdStartCapture.Enabled = True cmdStopCapture.Enabled = False End Sub
Disclaimer
The source code that appears in the IC Imaging Control Source Code Library is indented for educational purposes only. The Imaging Source Europe GmbH, the manufacturer of IC Imaging Control, does not assume any kind of warranty expressed or implied, resulting from the use of the content of this page.