how to display image with pixel information

hello there!

I want to display image …i have pixel,color information(R,G,B),depth. so now i want to display each pixel with above information…
Currently i have this information in ASCII format.Please help me to dispaly image with proper pixel drawing in OpenGL.

Kedar

Parse your ascii information and put it in a buffer in a format supported by OpenGL and use glDrawPixels to display it.

If you need better performance you could put the image data in a texture and put it on a quad.

Mikael