Skip to content
Advertisement

Tag: screenshot

Take a screenshot – Background Service

I’m trying to take a screenshot using a background service. This service is like a Facebook chathead, but I want it to take an screenshot when I do a click. I’ve developed some code but it doesn’t work. The last I’ve tried was: But is taking an screenshot to my button not to the screen. I know the problem is

Increase resolution of java screenshot

I am using the following code to take a screenshot in Java: This code works, but the screen shot outputted is fairly low resolution. How can I increase the resolution of the screenshot? 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.

Advertisement