为什么生成的图片内容没了? BufferedImage bufferedImage = imageReader.read(0);
Graphics2D graphics = (Graphics2D) bufferedImage.getGraphics();
// graphics.setBackground(Color.WHITE);
graphics.clearRect(0, 0, bufferedImage.getWidth(), bufferedImage.getHeight());
int width = (int) (bufferedImage.getWidth());
int height = (int) (bufferedImage.getHeight());
graphics.drawImage(bufferedImage, 0, 0, width, height, null);
FileOutputStream out = new FileOutputStream("D://hehe.jpg"); // 输出到文件流
ImageIO.write(bufferedImage, "jpg", out);