I have a raw rgb file with me , where each frame data is (240 * 200 * 2) (width * height * each pixel has 2 byte ).
I am reading this much data each time and passing to BitmapFactory.decodeByteArray
I am using the following function in BitmapFactory static class to decode the buffer into bitmap
Using java Syntax Highlighting
- decodeByteArray(byte[] imageData, int offset, int length, int preferredWidth, int preferredHeight)
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
usage is as follows
Using java Syntax Highlighting
- image = BitmapFactory.decodeByteArray(readBuffer,0,240*200*2 ,240,200);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
but what the function returns is a null image
can anyone guide me where I'm facing the problem

