home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16544 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.3 KB

  1. Path: sparky!uunet!portal!lll-winken!anduin!wiltzius
  2. From: wiltzius@anduin.ocf.llnl.gov (Dave Wiltzius)
  3. Newsgroups: comp.sys.sgi
  4. Subject: "imgsnap" capability from application
  5. Message-ID: <141756@lll-winken.LLNL.GOV>
  6. Date: 17 Nov 92 18:40:16 GMT
  7. Sender: usenet@lll-winken.LLNL.GOV
  8. Distribution: usa
  9. Organization: Lawrence Livermore Nat'l Lab.
  10. Lines: 26
  11. Nntp-Posting-Host: anduin.ocf.llnl.gov
  12.  
  13.  
  14. I would like to capture all or portions of the screen display
  15. from an application and write this to a file that could later
  16. be displayed using, for example, "ipaste".  In essence, I would
  17. like to have the "imgsnap" capability within the application but
  18. without the user interaction (hence forking a process to run
  19. imgsnap is not what I desire).
  20.  
  21. I have everything working using a GLX window to cover the area
  22. to capture and lrectread to get the image.  However, as soon as
  23. this GLX window is managed, the images that are not drawn in RGB
  24. have a strange color.
  25.  
  26. I suspect I'm getting fouled up in the GL colormap vs the default
  27. X colormap.
  28.  
  29. What to do?  Some of the area under the aforementioned GLX window
  30. is was not drawn by the application (and hence does not necessarily
  31. share the same colormap).  However, all non-RGB windows have the
  32. aforementioned problem.
  33.  
  34. Thanks much.
  35.   Dave Wiltzius
  36.   Lawrence Livermore Nat'l Lab
  37.   wiltzius@llnl.gov
  38.  
  39.