🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #7614

Help! What am I doing wrong here?

#7614
From: Tim Stoehr
Date: Thu, 17 Nov 1988 00:29
30 lines
1416 bytes
I'm having a problem with my first use of the 'image' operator.

The postscript program below, according to my postcript book, should generate
the following 20 by 20 bitmap, scaled to one inch by one inch.

11111111111111111111:fffff
11111111111111111111:fffff
11111111111111111111:fffff
11111111111111111111:fffff	72 72 scale
11111011111111111111:fbfff	20 20 1 [20 0 0 20 0 0] {<fffff fffff fffff fffff
11111011111111111111:fbfff	fffff f800f fbfff fbfff fbfff fbfff f81ff fbfff
11111011111111111111:fbfff	fbfff fbfff fbfff fbfff fffff fffff fffff fffff>}
11111011111111111111:fbfff	image
11111011111111111111:fbfff	showpage
11111000000111111111:f81ff
11111011111111111111:fbfff
11111011111111111111:fbfff
11111011111111111111:fbfff
11111011111111111111:fbfff
11111000000000001111:f800f
11111111111111111111:fffff
11111111111111111111:fffff
11111111111111111111:fffff
11111111111111111111:fffff
11111111111111111111:fffff

I expected a black upside-down 'F' to be generated, instead I got random
garbage.  Any distribution of blanks in the hex string made no difference.
What am I doing wrong?
Technical Details
Message-ID: <4181@teklds.TEK.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tektronix!teklds!tims

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tektronix!teklds!tims
From: tims@teklds.TEK.COM (Tim Stoehr)
Newsgroups: comp.lang.postscript
Subject: Help!  What am I doing wrong here?
Message-ID: <4181@teklds.TEK.COM>
Date: 17 Nov 88 00:29:56 GMT
Organization: Tektronix Inc., Beaverton, Or.
Lines: 30