Пример #1
0
        private USBCamera.HV_SNAP_PROC _SDKImageGrabbedDel;                                                                     //图像抓取到委托(当前品牌驱动)

        public CameraDriver_DaHengUSB(ProCommon.Communal.CameraProperty cam) : base(cam)
        {
            _deviceIdx          = 0;
            _deviceRef          = System.IntPtr.Zero;
            m_OutPutWindow      = new System.Drawing.Rectangle(0, 0, 800, 600);
            _SDKImageGrabbedDel = new USBCamera.HV_SNAP_PROC(OnCameraImageGrabbed);
        }
Пример #2
0
        protected CameraDriver(ProCommon.Communal.CameraProperty camProperty)
        {
            if (HoImage != null &&
                HoImage.IsInitialized())
            {
                HoImage.Dispose();
            }
            HalconDotNet.HOperatorSet.GenEmptyObj(out HoImage);

            DriverExceptionDel  = new DriverExceptionOccuredDel(OnDriverExceptionOccured);
            this.CameraProperty = camProperty;
        }