mrose@gremlin.nrtc.northrop.COM.UUCP (05/27/87)
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
ken@rochester.ARPA (Ken Yap) (05/27/87)
In article <12745.549091397@gremlin.nrtc.northrop.com> mrose@gremlin.nrtc.northrop.COM (Marshall Rose) writes: | | 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 Actually in a version of xipr (with a different ancestry) that I modified, I made xipr copy the window image to a different buffer, padding to a longword boundary in both directions with zero bits. More transparent to the user that way. Ken