1,保存路徑文件夾目錄不存在(保存前先判斷目錄是否存在,不存在創建)
string path = System.IO.Directory.GetCurrentDirectory() + "\\img\\";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
2,圖片在使用中,沒有被釋放掉
bitmap.Dispose();
