title: How to Display a Bitmap in a WPF Image
body: <p>I want to implement a image editing program, but I can not display the Bitmap in my WPF. 
  For the general editing I need a Bitmap. But I can not display that in a Image.</p>
  
  <pre><code>private void MenuItemOpen_Click(object sender, RoutedEventArgs e)
  {
      OpenFileDialog openfiledialog = new OpenFileDialog();
  
      openfiledialog.Title = "Open Image";
      openfiledialog.Filter = "Image File|*.bmp; *.gif; *.jpg; *.jpeg; *.png;";
  
      if (openfiledialog.ShowDialog() == true)
      {
          image = new Bitmap(openfiledialog.FileName);
      }
  }
  </code></pre>
  
  <p>I load the Image with a OpenFileDialog into the Bitmap. Now I want to set the picture in my WPF. Like so:</p>
  
  <pre><code>Image.Source = image;
  </code></pre>
  
  <p><strong>I really need a Bitmap to get the color of a special pixel!</strong> I need a simple code snipped.</p>
  
  <p><strong>Thank you for your help!</strong></p>