应用程序背后的Java屏幕截图

问题描述:

有没有一种方法可以捕获屏幕,但不会显示应用程序本身.我知道如何最小化帧或使帧不可见,但这必须真正快速完成,因为它每秒会发生很多次(至少每秒发生一次).我希望它看起来像Windows Vista/7中的放大镜.(该应用可以看到自己的身后.)

Is there a way to capture the screen but without the app itself getting shown. I know how to minimize or make a frame invisible but this has to be done real fast cos it's going to happen alot in each second (at least once every second). I want it to look something like the magnifier in Windows Vista/7. (The app can see behind itself.)

如果不与相关平台的窗口管理器进行紧密的本机集成,则在Java中是不可能的.

This is not possible in Java without tight native integration with the window-manager of the platform in question.