code: public int[][] fromFile(File file) throws IOException {
          BufferedImage image = ImageIO.read(file);
          image = scalingIfNeed(image, true);
          return toIntArrayArray(image);
      }
docs: Load a rastered image from file
  
  @param file the file to load
  @return the rastered image
  @throws IOException