home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16553 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.7 KB  |  46 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!zola!xcedrin.esd.sgi.com!daifuku
  3. From: daifuku@xcedrin.esd.sgi.com (Peter Daifuku)
  4. Subject: Re: "imgsnap" capability from application
  5. Message-ID: <sg52im8@zola.esd.sgi.com>
  6. Sender: news@zola.esd.sgi.com (Net News)
  7. Organization: Silicon Graphics, Inc.
  8. References:  <141756@lll-winken.LLNL.GOV>
  9. Distribution: usa
  10. Date: Tue, 17 Nov 92 21:20:36 GMT
  11. Lines: 33
  12.  
  13. In article <141756@lll-winken.LLNL.GOV>, wiltzius@anduin.ocf.llnl.gov (Dave Wiltzius) writes:
  14. |> 
  15. |> I would like to capture all or portions of the screen display
  16. |> from an application and write this to a file that could later
  17. |> be displayed using, for example, "ipaste".  In essence, I would
  18. |> like to have the "imgsnap" capability within the application but
  19. |> without the user interaction (hence forking a process to run
  20. |> imgsnap is not what I desire).
  21. |> 
  22. |> I have everything working using a GLX window to cover the area
  23. |> to capture and lrectread to get the image.  However, as soon as
  24. |> this GLX window is managed, the images that are not drawn in RGB
  25. |> have a strange color.
  26. |> 
  27. |> I suspect I'm getting fouled up in the GL colormap vs the default
  28. |> X colormap.
  29. |> 
  30. |> What to do?  Some of the area under the aforementioned GLX window
  31. |> is was not drawn by the application (and hence does not necessarily
  32. |> share the same colormap).  However, all non-RGB windows have the
  33. |> aforementioned problem.
  34. |> 
  35. |> Thanks much.
  36. |>   Dave Wiltzius
  37. |>   Lawrence Livermore Nat'l Lab
  38. |>   wiltzius@llnl.gov
  39.  
  40.  
  41. See the manpage for readdisplay. It does what you want, without having to create
  42. a screen-sized window.
  43.  
  44. Peter Daifuku
  45. daifuku@sgi.com
  46.