Opening and Handling Devices: Use Built-In Property Dialogs

This programming example illustrates how to use IC Imaging Control to modify device properties, using the built-in property dialog.
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.

IC Imaging Control allows devices settings, such as "Brightness", "Contrast" or "Exposure Time" to be adjusted, using shipped dialog boxes. This brief source code sample, illustrates how to carry out such adjustments.

The resulting application window looks as follows:

The property dialog of the sample application.

The property pages look as follows:

The dialog window of the sample application.

The dialog window of the sample application.

The dialog window of the sample application.

The dialog window of the sample application.

The program starts by activating another built-in dialog to select a device (.ShowDeviceSettingsDialog, to simplify matters this dialog is not shown here). Then, the selected device's live image data stream is displayed using .LiveStart (see image on the right):

Private Sub Form_Load()

    ICImagingControl1.ShowDeviceSettingsDialog

    If ICImagingControl1.DeviceValid Then
        ICImagingControl1.LiveStart
    End If

End Sub

When the "Properties..." button is clicked, the program activates the built-in dialog to adjust the device settings:

Private Sub cmdDeviceParameters_Click()

    ICImagingControl1.ShowPropertyDialog

End Sub

Related Source Code Samples

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.

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.