我保存图像但在 GDI 中出现错误 + 发生一般错误。如何摆脱错误?
public void save_all_image(string path_directory)
{
for (int i = 0; i < list_real_foto.Count; i++)
{
string format = list_format_file[i].ToLower();
list_real_foto[i].Save(path_directory + "\\" + i.ToString() + "." + format);//In GDI + generic error occurred
}
}