开发者

JOGL screenshot without overlaid dialogs interfering

开发者 https://www.devze.com 2023-03-28 01:34 出处:网络
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

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.

I used the ScreenShot class in JOGL. I have also tried Pbuffers and manually glreadpixelling from GL.GLBACK but still same ou开发者_如何学Pythontcome. Anyone else have an idea of how to make JOGL ignore these non-gl dialogs?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消