home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!zola!xcedrin.esd.sgi.com!daifuku
- From: daifuku@xcedrin.esd.sgi.com (Peter Daifuku)
- Subject: Re: "imgsnap" capability from application
- Message-ID: <sg52im8@zola.esd.sgi.com>
- Sender: news@zola.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc.
- References: <141756@lll-winken.LLNL.GOV>
- Distribution: usa
- Date: Tue, 17 Nov 92 21:20:36 GMT
- Lines: 33
-
- In article <141756@lll-winken.LLNL.GOV>, wiltzius@anduin.ocf.llnl.gov (Dave Wiltzius) writes:
- |>
- |> I would like to capture all or portions of the screen display
- |> from an application and write this to a file that could later
- |> be displayed using, for example, "ipaste". In essence, I would
- |> like to have the "imgsnap" capability within the application but
- |> without the user interaction (hence forking a process to run
- |> imgsnap is not what I desire).
- |>
- |> I have everything working using a GLX window to cover the area
- |> to capture and lrectread to get the image. However, as soon as
- |> this GLX window is managed, the images that are not drawn in RGB
- |> have a strange color.
- |>
- |> I suspect I'm getting fouled up in the GL colormap vs the default
- |> X colormap.
- |>
- |> What to do? Some of the area under the aforementioned GLX window
- |> is was not drawn by the application (and hence does not necessarily
- |> share the same colormap). However, all non-RGB windows have the
- |> aforementioned problem.
- |>
- |> Thanks much.
- |> Dave Wiltzius
- |> Lawrence Livermore Nat'l Lab
- |> wiltzius@llnl.gov
-
-
- See the manpage for readdisplay. It does what you want, without having to create
- a screen-sized window.
-
- Peter Daifuku
- daifuku@sgi.com
-