Try it your self,
public static void main(String[] args) throws Exception {Refer to this java world article about screen capture - http://www.javaworld.com/javaworld/jw-04-2006/jw-0424-funandgames.html
Robot rt = new Robot();
BufferedImage img = rt.createScreenCapture(new Rectangle(1000,1000));
ImageIO.write(img, "png", new File("D:\\tmp.png"));
}
Checkout In Dzone
No comments:
Post a Comment