home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!dlb!shawn!root
- From: root@shawn.uucp (Mark Jeghers -- UNIX/X/Motif Contractor)
- Subject: Re: XGetImage question
- Message-ID: <1992Nov21.074030.497@shawn.uucp>
- Organization: Mark Jeghers -- UNIX/X/Motif Contractor
- References: <1992Nov20.194122.854@elroy.jpl.nasa.gov>
- Date: Sat, 21 Nov 92 07:40:30 GMT
- Lines: 32
-
- paul@elroy.Jpl.Nasa.Gov (Paul Asmar) writes:
-
- >I am using XGetImage() to extract the pixmap of window which I am going
- ^^^^^^?
- I assume you mean "XImage"
-
- >to convert to other formats (like Postscript for example). However,
- >when the window is not completely visible, the unvisible parts have garbage
- >when using XGetImage().
-
- Yes, this is the classic problem. You cannot capture what does not exist.
- When you grab from a window, you essentially grab a region of your frame
- buffer (including overlap from other windows sometimes).
-
- >I tried turning on backing store via XChangeWindowAttributes(), but that
- >didn't help much.
-
- Backing store may save what you draw, but it's save *off* the screen,
- you are still capturing what is *on* the screen. This is why it does
- not help. Even if it did, backing store is not a portable bet.
-
- >Is there a way
- >to extract the contents of window regardless of its visibility status?
-
- No. You must make the entire window *visible*. Screen capture is
- literally that: the capture of the *screen*. Sorry I can't give you
- a more elegant answer...
-
- Mark Jeghers
- X/Motif Contractor
- 408/281-4823 [voicemail]
-
-