🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8456

Re: See-thru fills

#8456
From: Glenn Reid
Date: Fri, 19 May 1989 18:16
28 lines
1876 bytes
In article <19073@dcatla.UUCP> dudkl@dcatla.UUCP (Danny K. Llewallyn) writes:
>Please don't ask me why, but I have been playing around with the idea
>of a fill operator that does not coverup what has already been placed
>onto the page.  The only way that this can be accomplished  (please
>chime in Glenn) is via the imagemask operator.  This small program
>illustrates what I am trying to do.  Is anyone else out there trying
>to do this kindof thing?

There is another way to do it.  The "patternfill" example in the Green
Book (see page 137) uses font characters inside a clipping region to do
pattern filling.  The font characters draw an outline and fill it, and
it does not write any of the `white' bits.  Also, you get to take
advantage of the font cache if you use font characters for your
patterns.

Imagemask will do it, too, but you're stuck at one effective resolution
for the bitmap, and it probably takes longer to image all the data than
to use the font cache.  You also will need to use "clip" to fill
arbitrary shapes.

Check it out in the Green Book.  If you want to play with the code, you
can retrieve it from our file server by sending a message to
"ps-file-server@adobe.COM" containing the line
"send Programs greenbook.shar" in the body or in the Subject: line.
It's a UNIX shell archive with all of the Green Book programs in it.

Glenn Reid
Adobe Systems
Technical Details
Message-ID: <847@adobe.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!adobe!greid
References: <19073@dcatla.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!adobe!greid
From: greid@adobe.com (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: See-thru fills
Keywords: Show what's underneath!
Message-ID: <847@adobe.UUCP>
Date: 19 May 89 18:16:13 GMT
References: <19073@dcatla.UUCP>
Sender: news@adobe.COM
Reply-To: greid@adobe.COM (Glenn Reid)
Organization: Adobe Systems Incorporated, Mountain View
Lines: 28