First time here? Check out the FAQ!
answered 2018-06-07 05:02:15 -0600
you have to put the pixels at the start of your image, not at the end. use:
mat.put(0,0, bytesArrayForImage);