日期:2014-05-20 浏览次数:20613 次
//先把图片画在BufferedImage上 再输出BufferedImage BufferedImage bufferedImage=new BufferedImage(image.getWith(),image.getHeight(),BufferedImage.TYPE_4BYTE_ABGR); Graphics g=bufferedImage.getGraphics(); g.drawImage(image,0,0,image.getWidth,image.getHeight,null); ImageIO.write(bufferedImage,"jpg",new File("c:/image.jpg"));