return ch;
}
public static void writeImageToFile(File file, BufferedImage image)
{
BMPImageWriter writer = new BMPImageWriter(new BMPImageWriterSpi());
FileImageOutputStream fios = null;
try
{
fios = new FileImageOutputStream(file);
writer.setOutput(fios);
writer.write(image);
}
catch (FileNotFoundException e)
{
e.printStackTrace();
Assert.fail(e.toString());