src/main/java/com/xceptance/neodymium/visual/ai/util/Helper.java
/**
     * Read an image file into a BufferedImage.
     * 
     * @param filename
     *            String full path name
     * @return img BufferedImage
     */
Read an image file into a BufferedImage.

@param filename
String full path name
@return img BufferedImage
Read an image file into a BufferedImage . @param filename String full path name @return img BufferedImage
public static BufferedImage loadImage(String filename)
    {
        BufferedImage img = null;
        try
        {
            img = ImageIO.read(new File(filename));
        }
        catch (IOException e)
        {
            System.out.println("File Not Found");
        }
        return img;
    }
public static BufferedImage loadImage ( String filename ) { BufferedImage img = null ; try { img = ImageIO . read ( new File ( filename ) ) ; } catch ( IOException e ) { System . out . println ( "File Not Found" ) ; } return img ; }
Read an image file into a BufferedImage.
Read an image file into a BufferedImage .