src/main/java/me/codeboy/common/base/io/CBImage.java
public void save(File file) {
        try {
            ImageIO.write(image, "png", file);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
public void save(File file) {
        try {
            ImageIO.write(image, "png", file);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
public void save ( File file ) { try { ImageIO . write ( image , "png" , file ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
保存图片

@param file 图片文件
保存图片