EmbDev.net

Forum: µC & Digital Electronics 16-bit Bitmap file


von James (Guest)


Rate this post
useful
not useful
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
von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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?

von Gustl B. (-gb-)


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.

von James (Guest)


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 .

von gk (Guest)


Rate this post
useful
not useful

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.