December 24, 20169 yr After digging I found the code "Robot().createScreenCapture", but I can't seem to find what it is now a days, anyone wanna help a fella out? :-)
December 24, 20169 yr BufferedImage image = new Robot().createScreenCapture(Rectangle); ImageIO.write(image, "png", new File(getDirectoryData() + "screenshot.png")); This captures your screen in the given rectangle, not sure if this supports multi monitor setups.
Create an account or sign in to comment