Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to interpret a 16bit grayscale bitmap file?

Posted on 2003-11-27
7
Medium Priority
?
480 Views
Last Modified: 2010-04-17
Hi,

Can anyone provide me information about how to interpret a 16bit grayscale bitmap file in MS Visual C++

Thanks in advance

AhHeng
0
Comment
Question by:AhHeng
  • 2
4 Comments
 
LVL 45

Expert Comment

by:sunnycoder
ID: 9830626
0
 
LVL 10

Expert Comment

by:dkloeck
ID: 9830763
DevIL is a good library if u want to convert or show or do anything with your images
http://openil.sourceforge.net/
I used it for my last visual c++ project

0
 

Author Comment

by:AhHeng
ID: 9864761
Thanks to both sunnycoder and dkloeck,

So sorry, maybe I not specific  well what I want.

I am more concern with the format of a 16bits grayscale image.

For example, a 24bits RGB Image may consist of:
   1. Bitmap file header.
   2. Bitmap info header.
   3. No pallete.
   4. Bitmap data (which every 3 bytes represent a pixel. Each byte for a channel - RGB)

For a 8bits grayscale image in bitmap format, I know it consist of:
   1. Bitmap file header.
   2. Bitmap info header.
   3. A color pallete with 256 entries.
   4. Bitmap data (each for a pixel and it is the index to the color table / pallete).

I wish to know how a 16bits grayscale image is represented in a bitmap / I wish to know similar information (as in the above examples) about a 16bits grayscale image.

Thanks and hope somebody can help. Thank you.
AhHeng
0
 
LVL 45

Accepted Solution

by:
sunnycoder earned 600 total points
ID: 9864782
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question