Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What manner of arcane magic must I invoke to determine how many bits are in each pixel of a BMP image, and also divine its color code format (whether it is a gray-scale image or an RGB image)?
Posted
Updated 11-Dec-09 18:00pm
v2

1 solution

Bitmap pixels can vary in size from 1 to 32 bits. Bitmap files can be grayscale or color and use several kinds of encoding for color information. Check out this Wikipedia article for more details:

http://en.wikipedia.org/wiki/BMP_file_format[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900