Image processing (*.BMP)

I have some problem with image processing.

I have read values in *.bmp image file.
But I dont know how to convert 24 bit color Bitmap image to 8 bit gray scale image(using C++, without using openCV library).

Can anyone help me?
Topic archived. No new replies allowed.