ReadPixels

I want to read the pixels from a OpenGL Window, at a just resolution(dpi).
Can anybody help me???