🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5080

reading image data

#5080
From: Tom Tatlow
Date: Tue, 19 Mar 1991 21:53
28 lines
1480 bytes
I have a Postscript file containing some image data, and I would like to be
able to have the image drawn by a function.  However, the proc

	776 109 1
	[ 776 0 0 -109 0 109] 
	{ currentfile picstr readhexstring pop} 
	image

reads from the current position in the file (right after the call to the
function).

Is there any way I can store all of the hex image data in a big array or
something
and have the image procedure read it from there? What would the
procedure 
that's on the top of the stack before the call to "image" look like?


==================================================================
  	    Tom Tatlow	    "The Question"

    Work:  Digital Equipment Corporation, AI Technology Center
           tatlow@dash.dlb5.dec.com          (508) 490-8500

    Home:  59 Pearl Street, #3, Cambridge, MA 02139
           tom@math.mit.edu                  (617) 876-6216

==================================================================
Technical Details
Message-ID: <21257@shlump.nac.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!shlump.nac.dec.com!dash.dlb5.dec.com!tatlow

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!shlump.nac.dec.com!dash.dlb5.dec.com!tatlow
From: tatlow@dash.dlb5.dec.com (Tom Tatlow)
Newsgroups: comp.lang.postscript
Subject: reading image data
Message-ID: <21257@shlump.nac.dec.com>
Date: 19 Mar 91 21:53:43 GMT
Sender: newsdaemon@shlump.nac.dec.com
Reply-To: tatlow@dash.dlb5.dec.com (Tom Tatlow)
Organization: Digital Equipment Corporation
Lines: 28