title: Why does Image.FromFile return System.Drawing.Bitmap?
body: <p>I'm new to using c# with asp.net ajax so any help is appreciated. I am using <code>System.Drawing.Image</code> to get my image's virtual path with <code>Image.FromFile()</code> and want to return the image to be set up in my web application. Thanks in advance for any response!</p>
  
  <p>I have created a physical path then converted it to a virtual path then used <code>Server.MapPath</code> to get the equivalent path to assign to my <code>Image image</code>. </p>
  
  <pre><code>string pImagePath = @"C:\Apps\WebApp.Roll\Images\Profiles\" + item.Value.ToString();
  string vImagePath = pImagePath.Replace(@"C:\Apps\WebApp.Roll", "~").Replace(@"\", "/");
  Image image = Image.FromFile(System.Web.HttpContext.Current.Server.MapPath(vImagePath), true);
  
  #item.value is name of the image file.
  </code></pre>
  
  <p>My path is correct but whenever I debug to see what my <code>Image image</code> is, it tells me that my <code>image</code> is <code>System.Drawing.BitMap</code> What am I doing wrong?</p>