🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #1376

Re: PostScript beginner needs help with "image" command

#1376
From: Tomas G. Rokicki
Date: Mon, 27 Nov 1989 05:43
22 lines
1319 bytes
> The basic problem with this approach is that the 
> 	    {< . . . >}
> code sequence is placing a hexadecimal string on the stack.
> Strings are limited in length to 65535 bytes (documented on
> page 260 of my Red Book).  When you have a 256 x 256 x 4
> bit image, this translates into 32768 bytes of data, and
> when you double that (two hex characters per byte) you have

Just a minor nit.  Actually, the <...> syntax requires 2n+2 bytes
to represent a string of length n, but that string requires only
n bytes (plus 8 or so overhead) inside of the printer.  So you
can have a string of length 65535 represented with 131072 input
bytes with no troubles.

In other words, the string

   <0001020304050607>

requires only eight bytes (plus some minor overhead) inside the
printer . . .

-tom
Technical Details
Message-ID: <12886@polya.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!decwrl!shelby!polya!rokicki
References: <9790@saturn.ucsc.edu> <128392@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!decwrl!shelby!polya!rokicki
From: rokicki@polya.Stanford.EDU (Tomas G. Rokicki)
Newsgroups: comp.lang.postscript
Subject: Re: PostScript beginner needs help with "image" command
Keywords: image bitmap postscript
Message-ID: <12886@polya.Stanford.EDU>
Date: 27 Nov 89 05:43:00 GMT
References: <9790@saturn.ucsc.edu> <128392@sun.Eng.Sun.COM>
Distribution: na
Organization: Computer Science Department, Stanford University
Lines: 22