title: How to use saveFileDialog for saving images in C#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11053398/issue-while-saving-image-using-savefiledialog">Issue while saving image using savefiledialog</a>  </p>
  </blockquote>
  
  
  
  <p>I use windows forms in C#. How should I use saveFileDialog? I have picturebox and on the picture box there is an image and I want to save it. Loaded image is bmp. I want to save it as one of 4 formats: bmp, jpeg, png, tiff. I read some some notes on MDSN and also tryed it but I probably do something wrong. So I better ask how should be it write?
  How should be wrote method  <strong>private void saveFileDialog1_FileOk(object sender, CancelEventArgs e)</strong> and how should look like property <strong>saveFileDialog.Filter</strong>?
  Thanks</p>
  
  <p>EDIT: <br/>
  What I've tryed: <br/>
  <a href="https://stackoverflow.com/questions/11053398/issue-while-saving-image-using-savefiledialog">Issue while saving image using savefiledialog</a></p>
  
  <p>EDIT2: <br/>
  I tryed this filter<br/></p>
  
  <pre><code>Filter = bmp (*.bmp)|*.bmp|jpeg (*.jpeg)|*.jpeg|png (*.png)|*.png|tiff (*.tiff)|*.tiff
  </code></pre>