我试图只捕获桌面上的特定窗口,但我得到的是混合图像,一部分是窗口,一部分是桌面区域。我错过了什么?这是我的代码:RECTrect=newRECT();if(!SetForegroundWindow(handle))thrownewWin32Exception(Marshal.GetLastWin32Error());if(!GetWindowRect(handle,outrect))thrownewWin32Exception(Marshal.GetLastWin32Error());Thread.Sleep(500);RectanglewindowSize=rect.ToRectan