
Saving to a JPEG
Hello
Can anyone tell me how to save an openGL image to a Jpeg file? I have a fractal image which is stored as follows
typedef struct colors {
GLubyte red;
GLubyte green;
GLubyte blue;
} T_FractalImage;
T_FractalImage fractal_image[WINDOW_SIZE][WINDOW_SIZE];
How do I dump the contents of the 2D array to a jpeg file?
Any help on this is much appreciated, thanks
M

one way i can think of is using the OpenIL (DevIL) library. it can do more than just jpeg's though.
[edited by - adam17 on March 29, 2003 10:17:10 AM]
[edited by - adam17 on March 29, 2003 10:17:10 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement