private void OnPictureTaken(EosImageEventArgs eventArgs) { _photoCounter++; if (this.PictureTaken != null) this.PictureTaken(this, eventArgs); // start live view if both photos is transfered if (_photoCounter == 2) _pauseLiveViewRequested = false; }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void imageTaken(object sender, EosImageEventArgs e) { if (singleShotInProgress == true) { singleShotInProgress = false; } //изображение получено imageReceived(e.GetImage()); }
private void OnPictureTaken(EosImageEventArgs eventArgs) { if (this.PictureTaken != null) this.PictureTaken(this, eventArgs); }
private void Camera_PictureTaken(object sender, EosImageEventArgs e) { try { Log.Debug("Picture taken event received type" + e.GetType().ToString()); PhotoCapturedEventArgs args = new PhotoCapturedEventArgs { WiaImageItem = null, //EventArgs = // new PortableDeviceEventArgs(new PortableDeviceEventType() // { // ObjectHandle = // (uint)longeventParam // }), CameraDevice = this, FileName = "IMG0000.jpg", Handle = e }; EosFileImageEventArgs file = e as EosFileImageEventArgs; if (file != null) { args.FileName = Path.GetFileName(file.ImageFilePath); } EosMemoryImageEventArgs memory = e as EosMemoryImageEventArgs; if (memory != null) { if (!string.IsNullOrEmpty(memory.FileName)) args.FileName = Path.GetFileName(memory.FileName); } OnPhotoCapture(this, args); OnCaptureCompleted(this, new EventArgs()); } catch (Exception exception) { Log.Error("EOS Picture taken event error", exception); } }
private void HandlePictureUpdate(object sender, EosImageEventArgs e) { this.UpdatePicture(e.GetImage()); }
private void OnPictureTaken(EosImageEventArgs eventArgs) { if (this.PictureTaken != null) this.PictureTaken(this, eventArgs); _pauseLiveViewRequested = false; }