I'm running Linux, so I guess I could to a system call to xwd. Seems a little awkward, though. Isn't the pixmap available somewhere? Then I could just run a PNG or PPM writer.
Cheers --Kurt Jim Wilson wrote: > Kurt Konolige wrote: > >> Hi, I want to save the contents of an FLTK double-window as a PNG or PPM >> file. Is there an easy way to do this (from a program, not using a >> screenshot)? > > You don't specify your platform. In sane environments, "xwd -frame" > will dump a window (and the manager's frame" to stdout. The format is a > little strange though, and some work with Gimp or ImageMagick will be > needed to get PNG, etal. > > Jim Wilson > Gainesville, FL > _______________________________________________ > fltk mailing list > [email protected] > http://lists.easysw.com/mailman/listinfo/fltk > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

