Try it, it will give you a bitmap.
EDIT:
//OR , you can generate IntBuffer from following native method /*private IntBuffer makeBuffer(int[] src, int n) { IntBuffer dst = IntBuffer.allocate(n*n); for (int i = 0; i < n; i++) { dst.put(src); } dst.rewind(); return dst; }*/
Hope this helps you.
dhams
source share