src/main/java/com/xceptance/neodymium/visual/ai/util/Helper.java
/**
     * Read a image file into a BufferedImage and scale this image.
     * 
     * @param filename
     *            String full path name
     * @param width
     *            Integer value for the width of the loaded image.
     * @param height
     *            Integer value for the height of the loaded image.
     * @return img BufferedImage
     */
Read a image file into a BufferedImage and scale this image.

@param filename
String full path name
@param width
Integer value for the width of the loaded image.
@param height
Integer value for the height of the loaded image.
Read a image file into a BufferedImage and scale this image . @param filename String full path name @param width Integer value for the width of the loaded image . @param height Integer value for the height of the loaded image .
public static BufferedImage loadImageScaled(String filename, int width, int height)
    {
        BufferedImage img = null;
        try
        {
            img = ImageIO.read(new File(filename));
        }
        catch (IOException e)
        {
            System.out.println("File Not Found");
        }
        return imageToBufferedImageScaled(img, 1, height, width);
    }
public static BufferedImage loadImageScaled ( String filename , int width , int height ) { BufferedImage img = null ; try { img = ImageIO . read ( new File ( filename ) ) ; } catch ( IOException e ) { System . out . println ( "File Not Found" ) ; } return imageToBufferedImageScaled ( img , 1 , height , width ) ; }
Read a image file into a BufferedImage and scale this image.
Read a image file into a BufferedImage and scale this image .