writing image data(pixels) into files

hai ,

i am an entry level Opengl Programmer,i got a problem in writing image data into files under windows platform.

i created an openGL window with 2 Polygons filled with colors.i have to read the data of the image in the openGL window and have to write that data into flat-files. i will be very thankful to , if any one can help me reagrding this.

thank you very much



All opengl can do for you is glreadpixles to grab the frame image… you have to sort out the saving to file some other way… but there are loads of libraries out there