Created
March 30, 2016 02:05
-
-
Save Vanilton18/23084df3512185b4f82dcb5876a9c626 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Robot robot = new Robot(); | |
BufferedImage theImage = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); | |
ImageIO.write(theImage, "png", new File("C:\\myPic"+Integer.toString(turn)+".png")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment