title: Get ImageSource from Bitmap?
body: <p>I want to set a background image for my form/window <a href="https://stackoverflow.com/questions/4009775/change-wpf-window-background-image-in-c-sharp-code">like this guy</a> but instead of an image file on disk I've got a <code>System.Drawing.Bitmap</code> in memory.</p>
  
  <p>I need to do something like this:</p>
  
  <pre><code>this.Background = new ImageBrush(new BitmapImage(bmp));
  </code></pre>
  
  <p>Except <code>BitmapImage</code> won't take a <code>Bitmap</code>, nor will <code>ImageBrush</code> and I'm not sure if any of the others will. There's one called <code>BitmapCacheBrush</code> but I don't know what that does.</p>