Output to PS or Tif

I am new to OpenGL. I have written a simple code which outputs a cluster of points in a 3D environment. I wish to output the seen to a postscript file or an image file (tif,gif,png etc…). As of now I have been using screecaptures. I am running this code on both an SGI and a Linux platform.
If someone could point me to a simple code example which shows this capability…

Thanks

Originally posted by Manny98:
I wish to output the seen to a postscript file or an image file (tif,gif,png etc…). If someone could point me to a simple code example which shows this capability…

Right here:

http://www.opengl.org/discussion_boards/ubb/Forum4/HTML/000065.html