title: Byte array to image in Android
body: <p>I have a linear byte array whose values I want to set as pixels of an image. The byte array length is 4800 and I want it to be displayed as a 80x60 image with pixel values set row-wise one after the other. I know that BitmapFactory helps to handle such tasks but how do I specify the height and width of the image?</p>