On Sat, 20 Jul 2002 Vikas Madhavan Alathur wrote :
I have written a program explaining the concept of Fourier
series
graphically using the Mesa library. The program runs in full
screen
mode. Now I want to take a snap shot of one of its screens and
get a
PNG image of the same. How do I get it ?
If you have KDE installed, use ksnapshot.
I am not aware of any tools that do this except in X. However, you can always throw your own code in-that is if you have the time and need to expirement.
You will need to first capture the video memory as a bitmap and use the libraries for converting it to PNG. I assume libpng has such facilities.
Thanks,
-ah