16-bit Bitmap file

Moderator (Company: Titel) #6294634
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
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
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

A question of your own? This thread is over 6 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.