Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java take and save screenshot

Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
BufferedImage capture = new Robot().createScreenCapture(screenRect);
ImageIO.write(capture, "bmp", new File(args[0]));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #save #screenshot
ADD COMMENT
Topic
Name
8+8 =