?
Solved

How to interpret a 16bit grayscale bitmap file?

Posted on 2003-11-27
7
Medium Priority
?
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 600 total points
ID: 9864782
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
Progress
Starting up a Project

719 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