jjzjj

windowRect

全部标签

windows - PrintWindow 位图不同于 PrintScreen Key 位图

当使用PrintScreen+Alt组合键手动捕获窗口时,我得到以下信息:但如果我尝试使用WindowsAPI以编程方式执行此操作,我明白了:为什么会出现差异?我如何以编程方式获得第一个?这是我的代码:[DllImport("user32.dll")][return:MarshalAs(UnmanagedType.Bool)]privatestaticexternboolPrintWindow(IntPtrhWnd,IntPtrhdcBlt,intnFlags);publicBitmapPrintWindow(){Bitmapbmp=newBitmap(windowRect.Width