Capture a scrolling window contents screenshot

后端 未结 3 838
长发绾君心
长发绾君心 2020-12-24 04:33

I need to capture a screenshot of the scrolling window\'s client area, using .NET. My first priority is capturing web page screenshots. But this can be not the only one use

3条回答
  •  时光说笑
    2020-12-24 05:13

    You can get windows to redirect a WM_PAINT to an offscreen buffer with WM_PRINT and WM_PRINTCLIENT. This is better than screenscraping because it makes sure that obscured parts of a window(behind other windows) is painted anyway. If your target window scrolls by scrolling a child window position, WM_PRINT should apply. Just maybe it also helps your scenario.

提交回复
热议问题