How to correctly read an image file?
<p>I tried using <code>FileStream</code> to read the image file and it succeeded reading it, but it outputs this error message </p>

<blockquote>
  <p>"Parameter is not valid".</p>
</blockquote>

<pre><code>public Bitmap streamimage(string Fname)
{
    Bitmap bm;
    using (FileStream stream = new FileStream(Fname, FileMode.Open, FileAccess.Read))
    {
        bm = (Bitmap)Image.FromStream(stream);
        stream.Close();
        return bm;
    }
}
</code></pre>