home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6468 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.6 KB  |  60 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!ukma!cs.widener.edu!eff!world!pd
  3. From: pd@world.std.com (Peter F Davis)
  4. Subject: Re: How to make a PostScript image transparent? - Help!
  5. Message-ID: <C1J77r.H9x@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <C1IDnt.7pL@gabriel.keele.ac.uk>
  8. Date: Wed, 27 Jan 1993 21:19:02 GMT
  9. Lines: 49
  10.  
  11. gerry@keele.ac.uk (G.D.Pratt) writes:
  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. Use imagemask instead of image for your second, bitonal image.  See the
  57. PostScript Language Reference Manual for details.
  58.  
  59. -pd
  60.