I want to announce second version of ctx2png. Now it works decently on X11.
Ctx2Png is an addon to the GRX graphics library. It loads/saves a context from/to a PNG file.
PNG is a lost-less compressed graphics format. It have lots of features,
like the ability to handle an alpha channel. You can read more about the
PNG format in http://www.libpng.org/pub/png
The routines are not very efficient yet, but they work.
Download: