home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.larc.nasa.gov!cobia-f.icase.edu!arras
- From: arras@cobia-f.icase.edu (Michael Arras)
- Newsgroups: comp.lang.postscript
- Subject: Summary: Color/Not Color
- Date: 25 Jan 1993 02:57:42 GMT
- Organization: ICASE/NASA Langley
- Lines: 27
- Distribution: world
- Message-ID: <1jvkv6INN1go@rave.larc.nasa.gov>
- NNTP-Posting-Host: cobia.icase.edu
-
- Last week I asked whether or not it was possible to query a PS
- printer to find out if it had color capabilities. The only responses I
- received mentioned that I should check if systemdict /colorimage is known.
- Unfortunately, this does not work. If it did the following program would
- work:
-
- %!
- 200 200 moveto
- /Helvetica findfont 20 scalefont setfont
- systemdict /colorimage known {
- (This is a color printer) show
- } {
- (This is not a color printer) show
- } ifelse
- showpage
-
- This program prints `This is a color printer' no matter what printer I
- print it on (color or not color). Someone mentioned that I redefine
- /colorimage, but this will not solve my problem, nor will it produce the
- correct output in the program above. I find it hard to believe that PS
- does not have a built-in set of commands that can be used to find out if
- the printer being printed on is a color printer or not.
-
- Michael Arras Bavarian Research Center
- arras@forwiss.uni-erlangen.de for Knowledge-Based
- Artificial Neural Network and Systems_________________
- Fuzzy Logic Research Group FORWISS ERLANGEN * MUNICH * PASSAU
-