title: Convert RenderTargetBitmap to BitmapImage
body: <p>I have a <code>RenderTargetBitmap</code>, I need to convert it to <code>BitmapImage</code>. Please check the code below.</p>
  
  <pre><code> RenderTargetBitmap bitMap = getRenderTargetBitmap();
   Image image = new Image();// This is a Image
   image.Source = bitMap;
  </code></pre>
  
  <p>In the above code I have used Image.Now I need to use a BitmapImage. How can I do this?</p>
  
  <pre><code> RenderTargetBitmap bitMap = getRenderTargetBitmap();
   BitmapImage image = new BitmapImage();// This is a BitmapImage
   // how to set bitMap as source of BitmapImage ?
  </code></pre>