How can i view the jpeg image in the openGl?

Hai friends,
I want to display the jpeg image in the opengl .Can i get the matrix for that image?
How can i implement the pixelmap function?

Use libjpeg

http://www.opengl.org/developers/faqs/technical/miscellaneous.htm#misc0050