Java如何截屏
Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
BufferedImage capture = new Robot().createScreenCapture(screenRect);
ImageIO.write(capture, "png", new File("C:\\Users\\zhaojingbo\\Desktop\\a.png"));
Loading...