Revision: 1718
Updated Code
at November 10, 2006 00:10 by whitetiger
Updated Code
import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class screen2image { public static void main(String[] args) throws Exception { Robot robot = new Robot(); BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); ImageIO.write(screenShot, "JPG", new File("screenShot.jpg")); } }
Revision: 1717
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 9, 2006 23:54 by whitetiger
Initial Code
import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class screen2image { public static void main(String[] args) throws Exception { Robot robot = new Robot(); BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize())); ImageIO.write(screenShot, "JPG", new File("screenShot.jpg")); } }
Initial URL
Initial Description
Initial Title
Java - ScreenShot
Initial Tags
image, java, filter, images
Initial Language
Java