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)?

        If you mean from within fltk, I think there might be two ways.

        One way might be to use fl_read_image(), which I think will read the
        screen into a buffer, a kind of screen grab. It might be slow, not sure.
        See:
        http://fltk.org/documentation.php/doc-1.1/drawing.html#fl_read_image

        The other way I've heard of is some way to draw the screen to ram,
        which I think is use for printer support. I think only fltk 2.x
        and possibly a forthcoming release of 1.x will support that.

        Otherwise, as others have posted, tools like xwd(1) for Xwindows
        and screencapture(1) for mac do what you need, but I'm guessing
        from the qualifier in your last sentence that's NOT what you want.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to