Newsgroups: comp.windows.x
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!news.uu.net!nss1!mrm
From: mrm@nss1.com (Michael R. Miller)
Subject: Re: Getting a complete dump of a partially obscured window.
Organization: XZaphod of Rockville, MD
Date: Wed, 22 May 1991 09:38:42 GMT
Message-ID: <1991May22.093842.6180@nss1.com>
Send-Reply-To: uunet!xzaphod!michael
References: <34567@mimsy.umd.edu> <MELBY.91May20060643@daffy.yk.Fujitsu.CO.JP>
Sender: mrm@simpact.com (Michael R. Miller)

In article <MELBY.91May20060643@daffy.yk.Fujitsu.CO.JP> melby@daffy.yk.Fujitsu.CO.JP (John B. Melby) writes:
>>        I would like to get a X-window dump of a window which may not be
>>entirely on the display.  Actually the window is too large for the display,
>>but it needs to be dumped and sent to the printer in its entirety.	
>
>I have seen this question before, and it certainly seems to be FAQ material.
>Since the contents of a window portion generally do not exist when the
>window is not being displayed, the obvious answer is "move the window
>around and merge several dumps."  Perhaps someone has another feasible
>solution?

The method I've used to solve this is to copy the Window to a Pixmap.  This
should cause expose events to occur where necessary (IF I remember this
correctly).  Then obtain the XImage from the Pixmap.  You should have a
complete copy of what the server thinks ought to be in the window if the
screen was big enough.  This works on windows that are only partially
exposed due to window overlap too.

Michael R. Miller
uunet!xzaphod!michael
