Solved

How to interpret a 16bit grayscale bitmap file?

Posted on 2003-11-27
7
454 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 80
firstswap challenge 20 78
how to update exe applicatio from internet ? 6 80
Cygwin - GNU GPL License 1 25
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

803 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