reading bitmap pixel by pixel??

I want to ask how i can read a bitmap file with pixel by pixel.
And using these data how can i create histogram.

all code must be with console application
thans for your help
If you want to learn how to read bitmaps, this link would be useful:
http://en.wikipedia.org/wiki/BMP_file_format#Example_of_a_2x2_Pixel.2C_24-Bit_Bitmap
Topic archived. No new replies allowed.