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

  1. Path: sparky!uunet!news.larc.nasa.gov!cobia-f.icase.edu!arras
  2. From: arras@cobia-f.icase.edu (Michael Arras)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Summary: Color/Not Color
  5. Date: 25 Jan 1993 02:57:42 GMT
  6. Organization: ICASE/NASA Langley
  7. Lines: 27
  8. Distribution: world
  9. Message-ID: <1jvkv6INN1go@rave.larc.nasa.gov>
  10. NNTP-Posting-Host: cobia.icase.edu
  11.  
  12.     Last week I asked whether or not it was possible to query a PS
  13. printer to find out if it had color capabilities.  The only responses I
  14. received mentioned that I should check if systemdict /colorimage is known.
  15. Unfortunately, this does not work.  If it did the following program would
  16. work:
  17.  
  18. %!
  19. 200 200 moveto
  20. /Helvetica findfont 20 scalefont setfont
  21. systemdict /colorimage known {
  22.     (This is a color printer) show
  23. } {
  24.     (This is not a color printer) show
  25. } ifelse
  26. showpage
  27.  
  28. This program prints `This is a color printer' no matter what printer I
  29. print it on (color or not color).  Someone mentioned that I redefine
  30. /colorimage, but this will not solve my problem, nor will it produce the
  31. correct output in the program above.  I find it hard to believe that PS
  32. does not have a built-in set of commands that can be used to find out if
  33. the printer being printed on is a color printer or not.
  34.  
  35. Michael Arras                      Bavarian Research Center
  36. arras@forwiss.uni-erlangen.de      for Knowledge-Based
  37. Artificial Neural Network and      Systems_________________
  38. Fuzzy Logic Research Group         FORWISS   ERLANGEN * MUNICH * PASSAU
  39.