Example #1
0
        public void OnImageAvailable(ImageReader reader)
        {
            var image = reader.AcquireLatestImage();

            if (image != null)
            {
                ImageAvailable?.Invoke(this, image);
            }
            else
            {
                Debug.WriteLine("Image is null");
            }
        }
Example #2
0
 protected virtual void OnImage(ImageEventArgs e)
 {
     ImageAvailable?.Invoke(this, e);
 }
Example #3
0
 public void OnImageAvailable(MediaFile mediaFile)
 {
     ImageAvailable?.Invoke(this, mediaFile);
 }