Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!rws From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler) Newsgroups: comp.windows.x Subject: Re: need help with XGetImage screen dump via SUN rasterfile Message-ID: <8909011208.AA03838@expire.lcs.mit.edu> Date: 1 Sep 89 12:08:07 GMT References: <2586@lll-lcc.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 10 You're taking raw X image data and stuffing it into a file, apparently hoping (in vain) that it somehow matches Sun's rasterfile(5) format. Well, apparently it doesn't. You haven't provided any real clue as to what the problem is (e.g. you don't say anything about whether xviewsun gives an error message or just displays a skewed image, or complete garbage); how do you seriously expect anyone to help you? On a random guess that you've done everything else right, please note that in the very first paragraph of rasterfile(5) is says that scanlines must be padded to 16 bits. There's no guarantee that your X image conforms to this (in fact it's almost certain that it doesn't).