Article View: comp.lang.postscript
Article #3999help with a def including an image
From: BoB Miorelli
Date: Sun, 08 Nov 1992 02:32
Date: Sun, 08 Nov 1992 02:32
33 lines
1180 bytes
1180 bytes
Help, please. I would like to define a command that includes an image
operator, but keep getting a stackoverflow. The image data is approx 50k
and my printer has 2 meg in it (HP Lasterjet II with the Adobe PostScript
cartridge). This is what I would like to do:
/mypic {
/dopic {
gsave width height 1
[width 0 0 height neg 0 height]
{currentfile picstr readhexstring pop}
image grestore } def
0 0 translate pixwidth pixheight scale
dopic
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
...... picture data deleted
} def
then in several places in he document do a
x y moveto mypic
Any hints/help/``this is impossible'' would be appreciated.
Thanks.
--
-->BoB Miorelli, Pratt & Whitney Aircraft
also, H & R Block Tax preparer and Instructor
pwa-b!miorelli or miorelli@mstr.hgc.edu
Technical Details
Message-ID:
<1992Nov8.023230.7740@pwa-b.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!pwa-b!miorelliShow Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!pwa-b!miorelli From: miorelli@pwa-b.uucp (BoB Miorelli) Subject: help with a def including an image Message-ID: <1992Nov8.023230.7740@pwa-b.uucp> Keywords: def image Organization: Pratt & Whitney Aircraft Date: Sun, 8 Nov 1992 02:32:30 GMT Lines: 33