home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6496 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.8 KB

  1. Path: sparky!uunet!munnari.oz.au!sgiblab!spool.mu.edu!agate!doc.ic.ac.uk!uknet!keele!seq1!gerry
  2. From: gerry@keele.ac.uk (G.D.Pratt)
  3. Newsgroups: comp.lang.postscript
  4. Subject: How to make a PostScript image transparent? - Help!
  5. Message-ID: <C1IDnt.7pL@gabriel.keele.ac.uk>
  6. Date: 27 Jan 93 10:40:40 GMT
  7. Sender: news@gabriel.keele.ac.uk (UseNet News Service)
  8. Organization: Keele University, England
  9. Lines: 47
  10. Nntp-Posting-Host: seq1.cc.keele.ac.uk
  11. X-Newsreader: TIN [version 1.1 PL6]
  12.  
  13. Hi,
  14. I'm taking 2 PostScript files, one created from a Sunrasterfile with
  15. rastps and the other from pnmtops and cating them together. The first
  16. is a very light greyscale image and the second is a monochrome image
  17. with a lot of white. I want the first greyscale image to show thru' the
  18. white of the second monochrome image but it gets over written.
  19.  
  20. The code where the first ends and the second starts is like this:-
  21.  
  22. gsave
  23. 540.0 810.0 scale
  24. /s 400 string def
  25. 400 600 8
  26. [400 0 0 -600 0 600]
  27. {currentfile s readhexstring pop} image
  28.  
  29. image data here...
  30.  
  31. 797C7E8284898B8D91929496999B9D...........
  32. grestore
  33. %!PS-Adobe-2.0 EPSF-2.0
  34. %%Creator: pnmtops
  35. %%Title: noname.ps
  36. %%Pages: 1
  37. %%BoundingBox: 15 90 597 671
  38. %%EndComments
  39.  
  40. Prolog here...
  41.  
  42. %%EndProlog
  43. %%Page: 1 1
  44. gsave
  45. 15.3 90.5706 translate
  46. 581.4 580.859 scale
  47. 1074 1073 1
  48. [ 1074 0 0 -1073 0 1073 ]
  49. { picstr readstring }
  50. image
  51. 8000f9008000f9008000f9008000f9008000f9008000f9008000f9008000....
  52.  
  53. Is there something I can put _before_ the second one starts to make it
  54. transparent? Or some alternative approach perhaps with PBMPLUS. Thanks.
  55.  
  56. --
  57. gerry pratt - workstation support programmer - university of keele - ENGLAND
  58. email:  gerry@seq1.keele.ac.uk ( DYNIX? - just say no!! ) tel:UK 0782 583072
  59. "these opinions are mine, mine, Mine, Mine, MINE......ALL MINE I TELL YOU!!"
  60.