Olá pessoal...
[ame]http://www.youtube.com/watch?v=oAiJF9B3daM[/ame]
Sourcer:
Att #M0rph
[ame]http://www.youtube.com/watch?v=oAiJF9B3daM[/ame]
Sourcer:
Código PHP:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package capture;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
*
* @author Eduardo
*/
public class Capture {
private static Rectangle Rectangle;
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws AWTException, IOException {
Robot robot = new Robot();
Dimension a = Toolkit.getDefaultToolkit().getScreenSize();
Rectangle = new Rectangle(a);
BufferedImage img = robot.createScreenCapture(Rectangle);
ImageIO.write(img, "jpg", new File("c:/z/1.jpg"));
ImageIO.write(img, "bmp", new File("c:/z/2.bmp"));
ImageIO.write(img, "png", new File("c:/z/3.png"));
}
}
Att #M0rph