16-bit Bitmap file

Moderator (Company: Titel) #6294634
Rate this post
useful
not useful
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?
#6294639
Rate this post
useful
not useful
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.
Guest #6294879
Rate this post
useful
not useful
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 .

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now