I'm trying to save my list of images to a folder determined by the user, in this case I have this list.

```
List<System.Drawing.Image> ListOfSystemDrawingImage = new List<System.Drawing.Image>();

        ListOfSystemDrawingImage.Add(MatrizWPF.Properties.Resources.Earth);
        ListOfSystemDrawingImage.Add(MatrizWPF.Properties.Resources.Grass);
        ListOfSystemDrawingImage.Add(MatrizWPF.Properties.Resources.Rabbit);
        ListOfSystemDrawingImage.Add(MatrizWPF.Properties.Resources.Wolf);

```

Where Earth, Grass, Rabbit and Wolf are PNG images called the same way.

My question is, How can I store my 

```
List<System.Drawing.Image> listOfSystemDrawingImage = new List<System.Drawing.Image>();

```

To a folder determined by the user?
['https://Stackoverflow.com/questions/20254346', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3023107/']
You can use `System.Windows.Forms.FolderBrowserDialog` for the user to pick the destination folder and use the `Image.Save` to save the image in the format of your chioce

Example:

```
List<System.Drawing.Image> listOfSystemDrawingImage = new List<System.Drawing.Image>();

System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
    int index = 0;
    foreach (var image in listOfSystemDrawingImage)
    {
        image.Save(string.Format("{0}\\Image{1}.png", dialog.SelectedPath, index), System.Drawing.Imaging.ImageFormat.Png);
        index++;
    }
}

```

**However, I do not recommend mixing Window.Forms and System.Drawing with WPF,**
You can save the list of `System.Drawing.Image` this way:

```
string folder = @"C:\temp";
int count = 1;
foreach(Image image in listOfSystemDrawingImage)
{
    string path = Path.Combine(folder, String.Format("image{0}.png", count));
    image.Save(path);
    count++;
}

```

I don't know where you store the image names, so I just called them image1.png, image2.png, and so on.