标签: c# image exception gdi+
关于此,我已经在stackoverflow上给出了一些答案,但我无法弄清楚我处理的部分太快了:
A generic error occurred in GDI+, JPEG Image to MemoryStream
Image.Save(..) throws a GDI+ exception because the memory stream is closed
此行引发异常:
image.Save(path, imageCodecInfo, encoderParameters);