コード例 #1
0
        private void buttonOpen_Click(object sender, EventArgs e)
        {
            /// "WebCam"
            /// "IndusCamRGB"
            /// "IndusCamGray"
            /// "LogiTechCam"
            /// "LogiTechCamGray"
            HD_RGB.InitCamera(hWindowControlRGB.HalconWindow, "IndusCamRGB");
            //HD_Gray.InitCamera(hWindowControlGray.HalconWindow, "IndusCamGray");

            timer.Enabled = true; // 开始定时拍照、显示
        }