I've seen the usual way of taking a screenshot in Java where you use a Robot and a BufferedImage to take a screenshot. But is there a way of doing this without using Robot and BufferedImage?
Why? I am working with JavaFX and I don't like mixing up AWT (Swing) and JavaFX. Not a big problem, I know, but I would love to keep everything within one library. I've also heard that Robot is a bit slow, but that's not the main reason.
EDIT: I would like to capture the whole screen and not just an area like a scene.
Thanks in advance :D