title: c# save bitmap to file, save directory error?
body: <p>I have got a bitmap i would like to save to disk, however i have only managed to save it in same directory as the program exe.</p>
  
  <p>This is the only way i got it to work:</p>
  
  <pre><code>image.save("img.jpg", ImageFormat.Jpeg);
  </code></pre>
  
  <p>I would like to save it somewhere else on the disk regardless of where the program exe is.
  none of these works, i get: A generic error occurred in GDI+.</p>
  
  <pre><code>image.save("C:\\img.jpg", ImageFormat.Jpeg);
  image.save(@"C:\\img.jpg", ImageFormat.Jpeg);
  </code></pre>
  
  <p>EDIT: btw is it possible to make folders too?
  something like this? (i get the same error as always..)</p>
  
  <pre><code>image.save("foldername/img.jpg", ImageFormat.Jpeg);
  </code></pre>
  
  <p>EDIT2: got it to save to a folder only if the folder allready exists.
  Could there be a permission thing? anything that needs to be imported?</p>