Xref: utzoo comp.lang.postscript:1134 comp.graphics:3582 Path: utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!wind!naughton From: naughton%wind@Sun.COM (Patrick Naughton) Newsgroups: comp.lang.postscript,comp.graphics Subject: Re: Does 'prpost' really work? Keywords: mtv raytracer, postscript, prpost Message-ID: <77066@sun.uucp> Date: 10 Nov 88 23:18:04 GMT References: <1234@leah.Albany.Edu> Sender: news@sun.uucp Reply-To: naughton@sun.UUCP (Patrick Naughton) Organization: Sun Microsystems, Mountain View Lines: 53 In article <1234@leah.Albany.Edu> rds95@leah.Albany.Edu (Robert Seals) writes: > >%! >save >54 144 translate >504 504 scale >/DataString 4 string def >4 4 8 [ 4 0 0 4 0 0 ] >{ >currentfile DataString readhexstring pop >} bind image >18161c271a092affffffe65a4cffffffbbffffffe80c0affffffd6ffffffe8showpage > >Any ideas anybody? > >rob Two things: 1) There is too much data for a 4x4x8 image. You should only have 16 bytes and you have 31. 2) Although readhexstring should eat exactly as many bytes as you tell it thus leaving the showpage as the next thing in the input stream, I always worry when I see things like ...hex data...ffe8showpage. Use a newline! This will display *something*... It should help you debug your mumble2ps program. %! save 54 144 translate 504 504 scale /DataString 4 string def 4 4 8 [ 4 0 0 4 0 0 ] {currentfile DataString readhexstring pop} bind image 18 16 1c 27 1a 09 2a ff ff ff e6 5a 4c ff ff ff % This is all extra stuff... % bb ff ff ff e8 0c 0a ff ff ff d6 ff ff ff e8 showpage Good luck. -Patrick ______________________________________________________________________ Patrick J. Naughton ARPA: naughton@Sun.COM Window Systems Group UUCP: ...!sun!naughton Sun Microsystems, Inc. AT&T: (415) 336 - 1080