Exception:宽度和高度必须为非负值。

报错信息 1
ArgumentException: 宽度和高度必须为非负值。
--Message: 宽度和高度必须为非负值。
StackTrace:
   在 System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)
   在 KkjQuicker.Overlay.Layers.ScreenshotLayer.ScreenshotCanvas.DrawMaskAndSelection(DrawingContext dc)
   在 KkjQuicker.Overlay.Layers.ScreenshotLayer.ScreenshotCanvas.OnRender(DrawingContext dc)
   在 System.Windows.UIElement.Arrange(Rect finalRect)
   在 System.Windows.ContextLayoutManager.UpdateLayout()
   在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   在 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)

版本:1.45.0 2026-03-09 19:04 Microsoft Windows NT 10.0.26200.0