src/main/java/com/xceptance/neodymium/visual/ai/util/Helper.java
/***
     * Write a BufferedImage to HDD as a file, with the chosen format under {@link Constants#FORMAT}.
     * 
     * @param img
     *            BufferedImage
     * @param filename
     *            String name of the file
     */
Write a BufferedImage to HDD as a file, with the chosen format under  Constants#FORMAT.

@param img
BufferedImage
@param filename
String name of the file
Write a BufferedImage to HDD as a file with the chosen format under Constants#FORMAT . @param img BufferedImage @param filename String name of the file
public static void saveImage(BufferedImage img, File filename)
    {
        try
        {
            ImageIO.write(img, Constants.FORMAT, filename);
        }
        catch (IOException e)
        {
            System.out.println("File could not be saved");
        }
    }
public static void saveImage ( BufferedImage img , File filename ) { try { ImageIO . write ( img , Constants . FORMAT , filename ) ; } catch ( IOException e ) { System . out . println ( "File could not be saved" ) ; } }
Write a BufferedImage to HDD as a file, with the chosen format under {@link Constants#FORMAT}.
Write a BufferedImage to HDD as a file with the chosen format under { @link Constants#FORMAT } .