glDrawPixels

hi,
I am a new user for OpenGL. I want to display gray level image 0…255 instead of
RGB. the glDrawPixels requires x_size, Y_size, GL_UNSIGNED_BUTE, image and
RGB. what I put instedad of RGB. I just wanted gray level. If I don’t put RGB the routine doesn’t compile.
txs

Try with GL_LUMINANCE …