ArgumentException: 参数无效。 --Message: 参数无效。 StackTrace: 在 System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams) 在 DynamicClass.MainWindow.将Bitmap转换为字节数组(Bitmap bitmap) 在 DynamicClass.MainWindow.<>c__DisplayClass7.<OnWindowLoaded>b__6(Object sender, EventArgs e) 在 System.Windows.Window.OnContentRendered(EventArgs e) 在 System.Windows.Window.<PostContentRendered>b__204_0(Object unused) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)