}
BufferedImage readImageFromFile(File imageFile)
{
BufferedImage image = null;
BMPImageReader reader = new BMPImageReader(new BMPImageReaderSpi());
FileImageInputStream fiis = null;
try
{
fiis = new FileImageInputStream(imageFile);
reader.setInput(fiis);
image = reader.read(0);
}
catch (FileNotFoundException e)
{
e.printStackTrace();
}