title: Is it possible to create Avalonia.Media.Imaging.Bitmap from System.Drawing.Bitmap?
body: <p>I am writing an application in Avalonia and using OpenCvSharp to get frames from the camera. This worked with WPF - there I just called</p>
  <pre><code>Image.Source = Mat.ToBitmapSource();
  </code></pre>
  <p>but this doesn't work in Avalonia, because there is a different type of <em>Image</em> control, and a different type of its <em>Source</em> property.</p>
  <p>I tried doing this via a <em>MemoryStream</em>, but then the <em>Bitmap</em> constructor crashes with an <em>ArgumentNullException</em> (although the stream is not null).</p>