title: How to show an image obtained from a scanner using WIA in a picture box
body: <p>I want to display an image retrieved from a scanner in a picturebox. So far I have been able to do it saving the image to a temporary file:</p>
  
  <pre><code> private void btnScan_Click(object sender, EventArgs e)
   {
          var fn = System.IO.Path.GetTempFileName();
          System.IO.File.Delete(fn);
          var image = Scanner.Scan();
          image.SaveFile(fn);
          _ScannedImage = Bitmap.FromFile(fn);
          pictureBoxMain.Image = _ScannedImage;
   }
  </code></pre>
  
  <p>Is there a way to convert the image data in the ImageFile class avoiding to save it to disk?</p>