I want to save an image with two parameters (.Png or .Jpeg), so I only need to display files with the Png and Jpeg format , for example, when we select Save type as All images displays all images in a dialog box. so how can i do this?
using(SaveFileDialog saveFileDialog1 = new SaveFileDialog())
{
saveFileDialog1.InitialDirectory = Convert.ToString(Environment.SpecialFolder.MyPictures);
saveFileDialog1.Filter = "Images (*.Png + Jpeg)|*.Png + *.Jpeg";
}
source
share