title: Get Image file path from Image class type
body: <p>I have a query regarding <code>C#</code> <code>Image class type</code>. Consider the following statement</p>
  
  <pre><code>Image img = Image.LoadFromFile(@"C:\1.jpg");
  </code></pre>
  
  <p>Question: How can I get the image file path from the <code>img</code> variable? </p>
  
  <p>Guess:
  I dont think we can have image path because, if we see the method LoadFromFile, it reads image from physical file path and loads it into memory byte by byte. Once its loaded it will be in img object. img object now will be independent of Image physical file on the disk. </p>