la lecture et le stockage d'un .bmp fichier en java

Je suis suis en train de lire un .bmp fichier appelé circle1.bmp. C'est dans un paquet que j'ai importé dans le fichier suivant.

Jusqu'à présent j'ai le code suivant, mais lorsque j'exécute le code suivant je reçois:

javax.imageio.llOException: ne Peut pas lire le fichier d'entrée!

public void setUp() throws IOException
{
    BufferedImage image = ImageIO.read(new File("circle1.bmp"));
    byte[][] greenInputData = new byte[30][40];

    for (int x = 0; x < inputData.length; x++)
    {
        for (int y = 0; y < inputData[x].length; y++)
        {
            int color = image.getRGB(x, y);
            //alpha[x][y] = (byte)(color>>24);
            //red[x][y] = (byte)(color>>16);
            greenInputData[x][y] = (byte)(color>>8);
            //blue[x][y] = (byte)(color);
        }
    }
    this.inputData = greenInputData;

    System.out.println(this.inputData);
}
InformationsquelleAutor Q Liu | 2012-10-28