Fullscreen mode Screenshot awt.robot

Hi.
I have the following problem:
I have a game running in fullscreen mode with

bufferStrategy = getBufferStrategy();

and I’d like to have an ingame button for making screenshots.
I’ve been using awt.robot so far, but the image is just plain white when I save it.
I read somewhere else that it has to do with java not drawing to it’s own components
but rather to some OS-component…
So I hope for you to give me an answer to one of the two possibilities:

  1. Is there an easy way to get an image from that external source with java-code?
    I don’t want to use something like FRAPS, it should be possible ingame.
  2. Is there a way to get an image from bufferStrategy or related components ?

Thanks, I appreciate any help.
:slight_smile:

I solved the problem with a workaround.
I apply my whole rendering routine to a BufferedImage once
and save it, when calling the “getScreenshot”- method.

But either way I’m curious to know if there’s a way to get it directly.