我使用此代码进行100次屏幕截图:
Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());
for(int i = 0; i < 100; i++){
BufferedImage capture = new Robot().createScreenCapture(screenRect);
ImageIO.write(capture, "jpg", new File("D:/pictures/pic" + i + ".jpg"));
}
为什么拍摄时光标会闪烁?我的代码有问题吗?