Solved

How to interpret a 16bit grayscale bitmap file?

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

734 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