🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1378

image command

#1378
From: Mike Morrow
Date: Sat, 25 Nov 1989 15:39
32 lines
1232 bytes
I am new to PostScript, and would like some help with the following
problem:
I am trying to show two (or more) grey-scale images on a page.
The following code segment only results in the first image being printed:

/picstr 4 string def
/imagetest
  {2 2 8 [2 0 0 -2 0 2]
    {currentfile picstr readhexstring pop}
    image 
  } bind def
----- scaling and translation
  imagetest
  ff 00 cc 88

--- scale and translate for 2nd image
  imagetest
  00 ff cc 44

showpage
restore

Any ideas why? Is it what I am doing here, or a problem with the
interpreter? I am trying this on a Sun laserwriter. It also does not
work with Sun's NeWs windowing system and the psh function. Thanks 
for help.
Bill




   
Technical Details
Message-ID: <2166@cs-spool.calgary.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!uw-beaver!ubc-cs!alberta!calgary!cpsc!morrow

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!uw-beaver!ubc-cs!alberta!calgary!cpsc!morrow
From: morrow@cpsc.ucalgary.ca (Mike Morrow)
Newsgroups: comp.lang.postscript
Subject: image command
Summary: multiple images on one page
Keywords: image
Message-ID: <2166@cs-spool.calgary.UUCP>
Date: 25 Nov 89 15:39:55 GMT
Sender: news@calgary.UUCP
Reply-To: morrow@enel@unca![ubc, alberta] (Bill Morrow)
Organization: U. of Calgary, Calgary, Alberta, Canada
Lines: 32