/// <summary>
        /// The <see cref="VariablePhotoSequenceCapture.PhotoCaptured"/> event handler.
        /// </summary>
        /// <param name="sender">Event sender.</param>
        /// <param name="e">The <see cref="VariablePhotoCapturedEventArgs"/> instance containing the event data.</param>
        private void PhotoSequenceOnPhotoCaptured(VariablePhotoSequenceCapture sender, VariablePhotoCapturedEventArgs e)
        {
            Tracing.Trace("VariablePhotoCapture: Photo captured. Time offset: {0}, frame index: {1}", e.CaptureTimeOffset, e.UsedFrameControllerIndex);

            EventHandler<CapturedFrame> handler = this.PhotoCaptured;
            if (handler != null)
            {
                handler.Invoke(this, e.Frame);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The <see cref="VariablePhotoSequenceCapture.PhotoCaptured"/> event handler.
        /// </summary>
        /// <param name="sender">Event sender.</param>
        /// <param name="e">The <see cref="VariablePhotoCapturedEventArgs"/> instance containing the event data.</param>
        private void PhotoSequenceOnPhotoCaptured(VariablePhotoSequenceCapture sender, VariablePhotoCapturedEventArgs e)
        {
            Tracing.Trace("VariablePhotoCapture: Photo captured. Time offset: {0}, frame index: {1}", e.CaptureTimeOffset, e.UsedFrameControllerIndex);

            EventHandler <CapturedFrame> handler = this.PhotoCaptured;

            if (handler != null)
            {
                handler.Invoke(this, e.Frame);
            }
        }