设备的开启与操作: 使用对话框开启设备

演示如何编写 Visual Basic 6 程序使用 IC Imaging Control 开启一台设备。
语言:Visual Basic 6
版本:3.0.3
发布于:2005年4月7日
作者:IC Imaging Control 技术支持部
系统要求:IC Imaging Control >2.1
由WDM数据流类驱动程序驱动的相机、视频转换器或图像采集卡

The dialog window of the sample application.

下面这个 Visual Basic™ 6 示例程序演示了如何使用 IC Imaging Control 内置的一个对话框 选择一台设备并对其进行一些基本的设置(如右图所示)。 用户点击"Open Device"后,程序首先停止视频数据流(.LiveStop),而后通过 .Showdevicesettingsdialog 命令打开 对话框"Device Settings"。用户点击 "OK"后,程序将显示从所选设备传回的实时画面。

程序窗体如图所示:

The dialog window of the sample application.

Private Sub btnOpenDevice_Click()

    If ICImagingControl1.LiveVideoRunning Then
        ICImagingControl1.LiveStop
    End If

    ICImagingControl1.ShowDeviceSettingsDialog

    If ICImagingControl1.DeviceValid Then
        ICImagingControl1.LiveStart
    End If

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.