I was going to load a bitmap image that is 8-bit BMP and grayscale.
Need some help about the format specially in case of grayscale.

I got the HeaderInfo but no clue how to use the data, that is, 1byte per pixel with the pallete information.

Any code refernces will be helpful.