| | |
| | | private AcquisitionCallbackZA _acquisitionCallback; |
| | | private AcquisitionCompletedCallback _acquisitionCompletedCallback; |
| | | |
| | | private bool _isConnected = false; |
| | | public bool _isConnected = false; |
| | | private int _frameCount = 0; // 采集帧计数 |
| | | |
| | | // 图像缓冲 |
| | |
| | | if (PHM6000Profiler.GetCameraInformation(tempHandle, i, moduleTypeBytes, serialNumberBytes) == 0) |
| | | { |
| | | string sn = Encoding.UTF8.GetString(serialNumberBytes).TrimEnd('\0'); |
| | | if (!string.IsNullOrEmpty(sn)) |
| | | if (!string.IsNullOrEmpty(sn) && sn.Contains("L")) |
| | | { |
| | | cameraList.Add(sn); |
| | | } |
| | |
| | | using (AutoResetEvent waitHandle = new AutoResetEvent(false)) |
| | | { |
| | | Bitmap res = null; |
| | | EventHandler<CameraEventArgs> handler = (s, e) => { |
| | | if(e.Bitmap != null) { |
| | | EventHandler<CameraEventArgs> handler = (s, e) => |
| | | { |
| | | if (e.Bitmap != null) |
| | | { |
| | | res = e.Bitmap.Clone() as Bitmap; |
| | | waitHandle.Set(); |
| | | } |