home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!mmcohen
- From: mmcohen@cats.ucsc.edu (Michael M Cohen)
- Newsgroups: comp.sys.sgi
- Subject: Re: "imgsnap" capability from application
- Date: 18 Nov 1992 13:21:50 GMT
- Organization: University of California; Santa Cruz
- Lines: 28
- Distribution: usa
- Message-ID: <1edg1eINNkf1@darkstar.UCSC.EDU>
- References: <141756@lll-winken.LLNL.GOV>
- NNTP-Posting-Host: si.ucsc.edu
-
-
- 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
-
- try using scrsave. here's a c code frag which uses it
- to grab a window and send to printer
-
- ...
-
- winset(sgm.wid);
- getorigin(&xo, &yo);
- getsize(&xs, &ys);
- sprintf(sss,"scrsave /tmp/im %d %d %d %d\0",xo-2,xo+xs+1,yo-2,yo+ys+1);
- system(sss);
- system("tops /tmp/im | lpr");
-
- --
-
- ======================================================================
- = Dr. Michael M. Cohen mmcohen@dewi.ucsc.edu =
- = Program in Experimental Psychology mmcohen@fuzzy.ucsc.edu =
- = 433 Clark Kerr Hall 408-459-2655 LAB =
- = University of California - Santa Cruz 408-459-2700 MSGS =
- = Santa Cruz, CA 95064 408-459-3519 FAX =
- ======================================================================
-