home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5575 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.5 KB  |  59 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!ukma!wupost!decwrl!adobe!macne003.boston.us.adobe.com!user
  3. From: zisk@adobe.com (Stephen Zisk)
  4. Subject: Re: Lev 2 Image Dictionary Question
  5. Message-ID: <zisk-171192120610@macne003.boston.us.adobe.com>
  6. Followup-To: comp.lang.postscript
  7. Sender: usenet@adobe.com (USENET NEWS)
  8. Organization: Adobe Systems Incorporated
  9. References: <1992Nov16.231218.16989@infonode.ingr.com>
  10. Date: Tue, 17 Nov 1992 17:26:35 GMT
  11. Lines: 46
  12.  
  13. In article <1992Nov16.231218.16989@infonode.ingr.com>,
  14. dave@maven.b29.ingr.com (Dave Bradford) wrote:
  15. > I am trying to write a color raster level 2 PostScript driver
  16. > <some lines removed>
  17. > /rline currentfile /ASCIIHexDecode filter def
  18. > /gline currentfile /ASCIIHexDecode filter def
  19. > /bline currentfile /ASCIIHexDecode filter def
  20. > <more lines removed>
  21. > /DataSource [rline gline bline]
  22. > <more lines removed>
  23.  
  24. The problem here is simple: Your three data sources are not truly
  25. independent.
  26. You are making a presumption about the order in which the interpreter calls
  27. your data sources. In order to use three separate data sources, you would
  28. have
  29. to have three files (or strings, or whatever) which could be accessed in
  30. any
  31. order, without regard to interrelationships. See the Red Book (2nd
  32. edition):
  33.  p. 214 (last paragraph) - "The three sources... must actually be
  34. independent"
  35.  p. 215 (diagram) - Note the bracketed "independent"
  36.  p. 225 (first paragraph under "Color Image with Single Source.") -
  37.         "The first organization is the only one that is useful for images
  38.          whose data are provided in-line in a PostScript language program.
  39.          The second organization is limited to situations in which the
  40.          separate components are stored elsewhere, such as in separate
  41.          files that can be read in parallel."
  42.  
  43. If the image data were small enough to be stored in strings, you could pre-
  44. define the individual strings and use them in the image operator. The fact
  45. that your code worked on some Level 1 implementations is, unfortunately,
  46. device-dependent. You were depending on the device reading all the red
  47. data,
  48. then all the green, then the blue. Many devices did just this when allowed,
  49. but this is not a standard. That is why the "independent" was stressed so
  50. much in the new Red Book. Sorry!
  51.  
  52. Stephen Zisk (zisk@adobe.com)  Disclaimer: These are my personal opinions
  53. and
  54. Adobe Systems Incorporated     do not represent the views of Adobe Systems
  55. Eastern Regional Office        Incorporated.
  56. 24 New England Exec. Park
  57. Burlington, MA 01803           They pay me but they don't muzzle me!
  58.