EmbDev.net

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


von James (Guest)


Rate this post
0 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. (lkmiller) (Moderator)


Rate this post
0 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
0 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
0 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
0 useful
not useful

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig