Pixel Color

I am displaying the .PNG image in the rendering context. I want to pick the color value of the pixel at the point where i click the mouse. If the pixel contains transparent value what ho wto obtain the alpha channel for that pixel?

Use glReadPixels