Skip to content
Advertisement

Increase resolution of java screenshot

I am using the following code to take a screenshot in Java:

JavaScript

This code works, but the screen shot outputted is fairly low resolution. How can I increase the resolution of the screenshot?

Advertisement

Answer

There is nothing wrong with this code. I have a screen resolution of 1680×1050 pixels, and the generated png file has exactly this size.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement