public void OnImageAvailable(ImageReader reader) { var image = reader.AcquireLatestImage(); if (image != null) { ImageAvailable?.Invoke(this, image); } else { Debug.WriteLine("Image is null"); } }
protected virtual void OnImage(ImageEventArgs e) { ImageAvailable?.Invoke(this, e); }
public void OnImageAvailable(MediaFile mediaFile) { ImageAvailable?.Invoke(this, mediaFile); }