I described insides of the BMP file Here.
I needed a program which converts bmp image in a 2 dimensional array of 0 and 1. So i could display the image on the LCD display from Nokia 5110.
Here I have the source code, written in C++, now i will explain how it works.
int main(int argc, char *argv[])