Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!gremlin.nrtc.northrop.COM!mrose From: mrose@gremlin.nrtc.northrop.COM.UUCP Newsgroups: comp.windows.x Subject: xsize -- arbitrarily resize an X window Message-ID: <12745.549091397@gremlin.nrtc.northrop.com> Date: Wed, 27-May-87 02:33:56 EDT Article-I.D.: gremlin.12745.549091397 Posted: Wed May 27 02:33:56 1987 Date-Received: Thu, 28-May-87 06:15:38 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 26 Hi. If you've been using the X window dump to imagen laser program I mentioned a couple of weeks ago, you may have noticed strange behavior on the Imagen when it prints the right edge of the window dump. This apparently happens if the dump isn't a multiple of 32-bits wide. The Imagen processor likes bitmaps to be in "patches" which are 32-bits wide and tends to pad with a strange pattern when given bitmaps which are otherwise legitimate. The solution of course is to make your window dumps an integral multiple of 32-bits wide. The way to do that is to resize the window prior to dumping it, generating an ExposeWindow event so the application can hopefully repaint the slightly larger window nicely prior to dumping. The upshot: instead of doing just "xipr" and clicking on the window to dump, you should type "xsize -mod32", click on the window, "xipr" and then click on the window again. I've added the source to xsize to the tar image portal/xstuff.tar on gremlin.nrtc.northrop.com[128.99.0.17], available via anonymous ftp. I've also added some better man pages to the programs there. Enjoy, /mtr