日期:2014-05-20 浏览次数:20750 次
Image image = imageicon.getImage(); BufferedImage bi = new BufferedImage(image.getWidth(),image.getHeight(),BufferedImage.TYPE_INT_RGB); Graphics2D g2d = bi.createGraphics(); g2d.drawImage(0,0,image); g2d.dispose(); ImageIO.write(bi,"png",new File("out.png"));