how can i load 8bit bitmap image with gldrawpixel?

I can’t load 8bit grayscale image. Is there another way?

Can you give us more information?

Reading

The format would be GL_LUMINANCE, GL_UNSIGNED_BYTE

thanks, i succeeded as i gave the same arguments as you mentioned