發表文章

目前顯示的是有「Exception」標籤的文章

C# 在 GDI+ 中發生泛型錯誤

http://blog.miniasp.com/post/2009/05/A-generic-error-occurred-in-GDI-plus.aspx 解決: 1. http://stackoverflow.com/questions/15571022/how-to-find-reason-for-generic-gdi-error-when-saving-an-image (會造成 記憶體不足) ----------------------------------------------------------------------------------------------------- 2.使用暫存檔及壓縮jpg層級等級                      var tempFilePath = Path .Combine(strSavePath,rows + ".tmp" );                     file.SaveAs(tempFilePath);                     using ( var result = new Bitmap (tempFilePath))                     {             ...