Hello forum members,
I am trying to use fingerprint device(grove fingerprint sensor).
I can get the data but I dont know how I convert in bmp file.Datasheet tell this sentence.
"ImageBuffer serves for image storage and the image format is 256*288 pixels.
When transferring through UART, to quicken speed, only the upper 4 bits of the pixel is transferred
(that is 16 grey degrees). And two adjacent pixels of the same row will form a byte before the
transferring. When uploaded to PC, the 16-grey-degree image will be extended to 256-grey-degree
format. That¡s 8-bit BMP format.
When transferring through USB, the image is 8-bit pixel, that¡s 256 grey degrees."
What can I do for that?
Thank you
What I have tried:
result[i++] = (byte)((bits & 0x0F) << 4);
result[i++] = (byte)(bits & 0xF0);