public static char[][] loadImage(File file,char offChar) throws FileNotFoundException, RuntimeException {
  ArrayList<String> rows=BooleanImageLoad.loadImagePad(file,offChar);
  String s=rows.get(0);
  char[][] img=new char[rows.size()][s.length()];
  for (int i=0; i < rows.size(); i++) {
    s=rows.get(i);
    for (int j=0; j < s.length(); j++) {
      img[i][j]=s.charAt(j);
    }
  }
  return img;
}

public static char [ ] [ ] loadImage ( File file , char offChar ) throws FileNotFoundException , RuntimeException { ArrayList < String > rows = BooleanImageLoad . loadImagePad ( file , offChar ) ; String s = rows . get ( 0 ) ; char [ ] [ ] img = new char [ rows . size ( ) ] [ s . length ( ) ] ; for ( int i = 0 ; i < rows . size ( ) ; i ++ ) { s = rows . get ( i ) ; for ( int j = 0 ; j < s . length ( ) ; j ++ ) { img [ i ] [ j ] = s . charAt ( j ) ; } } return img ; }
load up a char - based image from the given file .
