設備的開啟與操作: 使用對話框開啟設備

演示如何編寫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.