public int[][] fromFile(File file) throws IOException {
  BufferedImage image=ImageIO.read(file);
  image=scalingIfNeed(image,true);
  return toIntArrayArray(image);
}

public int [ ] [ ] fromFile ( File file ) throws IOException { BufferedImage image = ImageIO . read ( file ) ; image = scalingIfNeed ( image , true ) ; return toIntArrayArray ( image ) ; }
load a rastered image from file
