设置设备参数: 使用内置的属性对话框

介绍如何通过IC Imaging Control使用内置对话框调整设备属性。
语言:Visual Basic 6
版本:3.0.3
发布于:2005年4月7日
作者:IC Imaging Control 技术支持部
系统要求:IC Imaging Control >2.1
由WDM数据流类驱动程序驱动的相机、视频转换器或图像采集卡

通过 IC Imaging Control,您可以将一个内置对话框集成到自己的程序中,使得用户可以调节如亮度、对比度、曝光时间等参数。 本例将介绍如何调用这个对话框。

示例程序窗口如下图所示:

The property dialog 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 dialog window of the sample application.

程序开始后首先调用内置对话框 (.ShowDeviceSettingsDialog)用于选择视频设备。 而后通过.LiveStart显示设备传来的现场画面数据流。

Private Sub Form_Load()

    ICImagingControl1.ShowDeviceSettingsDialog

    If ICImagingControl1.DeviceValid Then
        ICImagingControl1.LiveStart
    End If

End Sub

用户点击"Properties..."按钮,程序调用该对话框,用户进而可以调整设备属性:

Private Sub cmdDeviceParameters_Click()

    ICImagingControl1.ShowPropertyDialog

End Sub

相关源代码示例

责任声明
IC Imaging Control 源代码库中的所有代码均只用于教学目的,The Imaging Source Europe GmbH 作为IC Imaging Control的开发制造商,不对任何由于使用本文或其中源代码所产生的后果承担责任。

该网站为The Imaging Source网络的一部分。其它的站点包括 公司, Imaging, 天文相机, Astronomy Cameras Blog, Blog caméras d'astronomie, 天文相机有奖竞答, TX Text Control, LiveDocx, phpLiveDocxForum.