title: Placing Bitmap in Canvas in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2168370/how-to-render-bitmap-into-canvas-in-wpf">How to render bitmap into canvas in WPF?</a>  </p>
  </blockquote>
  
  
  
  <p>What I want is simple. I want to place a <code>BitmapImage</code> into a <code>Canvas</code> in C#. My app is based on WPF. I searched for this and I found similar questions, but I could not find what I'm looking for.</p>
  
  <p>In short, I have this:</p>
  
  <pre><code>BitmapImage img = new BitmapImage(new Uri("c:\\xyz.jpg"));
  </code></pre>
  
  <p>And I want to put this in the canvas, the mean is not that important, it can be a rectangle or whatever.</p>