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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!mmcohen
  2. From: mmcohen@cats.ucsc.edu (Michael M Cohen)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: "imgsnap" capability from application
  5. Date: 18 Nov 1992 13:21:50 GMT
  6. Organization: University of California; Santa Cruz
  7. Lines: 28
  8. Distribution: usa
  9. Message-ID: <1edg1eINNkf1@darkstar.UCSC.EDU>
  10. References: <141756@lll-winken.LLNL.GOV>
  11. NNTP-Posting-Host: si.ucsc.edu
  12.  
  13.  
  14. In article <141756@lll-winken.LLNL.GOV> wiltzius@anduin.ocf.llnl.gov (Dave Wiltzius) writes:
  15. >
  16. >I would like to capture all or portions of the screen display
  17. >from an application and write this to a file that could later
  18. >be displayed using, for example, "ipaste".  In essence, I would
  19.  
  20. try using scrsave. here's a c code frag which uses it
  21. to grab a window and send to printer
  22.  
  23. ...
  24.  
  25. winset(sgm.wid);
  26. getorigin(&xo, &yo);
  27. getsize(&xs, &ys);
  28. sprintf(sss,"scrsave /tmp/im %d %d %d %d\0",xo-2,xo+xs+1,yo-2,yo+ys+1);
  29. system(sss);
  30. system("tops /tmp/im | lpr");
  31.  
  32. -- 
  33.  
  34. ======================================================================
  35. =   Dr. Michael M. Cohen                   mmcohen@dewi.ucsc.edu     = 
  36. =   Program in Experimental Psychology     mmcohen@fuzzy.ucsc.edu    =
  37. =   433 Clark Kerr Hall                    408-459-2655 LAB          = 
  38. =   University of California - Santa Cruz  408-459-2700 MSGS         = 
  39. =   Santa Cruz, CA 95064                   408-459-3519 FAX          = 
  40. ======================================================================
  41.