Hi,
There are different resolutions in a bitmap file, depending on the resolution is how you decode the information.
Here is an example that opens 24-bit images and calculates a histogram of each channel color (red, green, blue). You can use this example to read the data; there is an array with the data for each color.
I hope this helps.
Juan Carlos
N.I.