只有2句话,为什么会出异常啊?
Bitmap bitmap = new Bitmap(50, 50, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
bitmap.Save(@"C:\ConvertColor.jpg");
Bitmap bitmap = new Bitmap(50, 50, System.Drawing.Imaging.PixelFormat.Format24bppRgb);
bitmap.Save(@"C:\ConvertColor.jpg");
异常
bitmap.Save(@"C:\ConvertColor.jpg");连续执行2遍就会有这个错误加
bitmap.Dispose();
bitmap = null;