Solved

How to interpret a 16bit grayscale bitmap file?

Posted on 2003-11-27
7
452 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
7 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 150 total points
ID: 9864782
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Using YubiKey with REST API application 2 82
bunnyEars challenge 6 67
array6 challenfge 6 65
groupSum6 challenge 6 48
I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now