Does anyone have a documentation for a 16-bit Bitmap file ? In wikipedia I found the one with 24-bit and 32-bit . For my project I need the one with 16-bit Bitmap file . Thanks in advance
: Moved by Moderator
James schrieb: > Does anyone have a documentation for a 16-bit Bitmap file ? There are several types of bitmap, as a bitmap is only one word of bits per pixel. So some question arise: Where do you get your bitmap file from? What kind of bitmap do you have? Is it some version of a microsoft bitmap? Or is it a plain binary bitmap with e.g. 5:5:5:1 (r:g:b:alpha) encoding?
Then you didn't read the Wikipedia article. In the BMP itself there is a value determining the Bits per pixel: "the number of bits per pixel, which is the color depth of the image. Typical values are 1, 4, 8, 16, 24 and 32." So the BMP is the Format, you have to parse the Header and info block.
Well for example : In the 24-bitmap format the size of the BMP file is 70 bytes (54+16) (54 bytes header + 16 bytes data) and40 bytes Number of bytes in the DIB header In the 32-bitmap format the size of the BMP file is 154 bytes (122+32) and 108 bytes Number of bytes in the DIB header The only Information I got from 16-bitmap file format is 4 bits per pixel .
Did you check this information? https://docs.microsoft.com/de-de/windows/win32/api/wingdi/ns-wingdi-bitmapinfo gk