注意参数imageFormat的设置,不同的参数图形输出处理不同,保证透明需要设置成png格式// FileOutputStream fos = null;// fos = new FileOutputStream("c:\\aaa.png");// ImageIO.write(image, imageFormat, fos);imageFormt = “png”