Posted by lordcyber
on June 10, 2003 at 3:23 PM PDT
(Woohoo! First post on the forum!)
It seemed easy enough...all I had to do was grab what was on the front buffer and save it to a file right? Right?
I'm currently using the Fullscreen API and I thought it would be cool to add in a way for players to take a snapshot. Problem is, my only hook to the buffers is the back buffer by taking a Graphics object from BufferStrategy.getDrawGraphics();
anyone know of a simple way to create an Image object off of a Graphics object, or is Graphics a one way street headed in the wrong direction? It seems there's gotta be a way to replicate what the Print Screen button is doing but send the output to an Image object rather than the OS clipboard...