我試圖將我的圖像列表保存到用戶確定的文件夾中,在這種情況下,我有這個列表。如何將圖像列表保存到文件夾?
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);
這裏地球,草,兔子和狼都是用同樣的方式叫做PNG圖像。
我的問題是,我怎樣才能保存我
List<System.Drawing.Image> listOfSystemDrawingImage = new List<System.Drawing.Image>();
由用戶確定的文件夾?
如何獲取圖像名稱? WPF與System.Drawing.Image的 – Szymon
? –