Article View: comp.lang.postscript
Article #6547How to make a PostScript image transparent? - Help!
From: G.D.Pratt
Date: Wed, 27 Jan 1993 10:40
Date: Wed, 27 Jan 1993 10:40
47 lines
1857 bytes
1857 bytes
Hi,
I'm taking 2 PostScript files, one created from a Sunrasterfile with
rastps and the other from pnmtops and cating them together. The first
is a very light greyscale image and the second is a monochrome image
with a lot of white. I want the first greyscale image to show thru' the
white of the second monochrome image but it gets over written.
The code where the first ends and the second starts is like this:-
gsave
540.0 810.0 scale
/s 400 string def
400 600 8
[400 0 0 -600 0 600]
{currentfile s readhexstring pop} image
image data here...
797C7E8284898B8D91929496999B9D...........
grestore
%!PS-Adobe-2.0 EPSF-2.0
%%Creator: pnmtops
%%Title: noname.ps
%%Pages: 1
%%BoundingBox: 15 90 597 671
%%EndComments
Prolog here...
%%EndProlog
%%Page: 1 1
gsave
15.3 90.5706 translate
581.4 580.859 scale
1074 1073 1
[ 1074 0 0 -1073 0 1073 ]
{ picstr readstring }
image
8000f9008000f9008000f9008000f9008000f9008000f9008000f9008000....
Is there something I can put _before_ the second one starts to make it
transparent? Or some alternative approach perhaps with PBMPLUS. Thanks.
--
gerry pratt - workstation support programmer - university of keele - ENGLAND
email: gerry@seq1.keele.ac.uk ( DYNIX? - just say no!! ) tel:UK 0782 583072
"these opinions are mine, mine, Mine, Mine, MINE......ALL MINE I TELL YOU!!"
Technical Details
Message-ID:
<C1IDnt.7pL@gabriel.keele.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!keele!seq1!gerryShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!keele!seq1!gerry From: gerry@keele.ac.uk (G.D.Pratt) Newsgroups: comp.lang.postscript Subject: How to make a PostScript image transparent? - Help! Message-ID: <C1IDnt.7pL@gabriel.keele.ac.uk> Date: 27 Jan 93 10:40:40 GMT Sender: news@gabriel.keele.ac.uk (UseNet News Service) Organization: Keele University, England Lines: 47 Nntp-Posting-Host: seq1.cc.keele.ac.uk X-Newsreader: TIN [version 1.1 PL6]