Here you can find the source of divide(final String bitmap, final int row)
private static String[] divide(final String bitmap, final int row)
//package com.java2s; //License from project: Apache License public class Main { private static String[] divide(final String bitmap, final int row) { final String[] rows = new String[row]; for (int i = 0; i < row; i++) { final int start = i * row; rows[i] = bitmap.substring(start, start + row); }// www . j a v a2 s . c o m return rows; } }