JOGL屏幕截图没有重叠的对话框干扰

时间:2021-06-27 13:19:22

Hey I ran into an issue with taking a Screenshot from JOGL on windows XP (works fine in Win 7) where if I try to take a snapshot off my GLCanvas and there is a dialog on it, it will also include that dialog in the screenshot.

嘿我遇到了一个问题,从Windows XP上的JOGL截取屏幕截图(在Win 7中运行正常),如果我尝试从我的GLCanvas拍摄快照并且有一个对话框,它还将在屏幕截图中包含该对话框。

I used the ScreenShot class in JOGL. I have also tried Pbuffers and manually glreadpixelling from GL.GLBACK but still same outcome. Anyone else have an idea of how to make JOGL ignore these non-gl dialogs?

我在JOGL中使用了ScreenShot类。我也试过Pbuffers并从GL.GLBACK手动glreadpixelling但仍然是相同的结果。其他人都知道如何让JOGL忽略这些非gl对话框?

1 个解决方案

#1


0  

You should use java.awt.Robot class. It works fine for me.

你应该使用java.awt.Robot类。这对我来说可以。

#1


0  

You should use java.awt.Robot class. It works fine for me.

你应该使用java.awt.Robot类。这对我来说可以。