home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.1 (User) / OpenStep 4.1 (User).iso / usr / lib / NextPrinter / Drivers / NXShared / NLPTransferFunction.ps < prev   
Encoding:
Text File  |  1992-02-08  |  683 b   |  23 lines

  1.  
  2. % Copyright 1992, NeXT Computer, Inc.  All rights reserved.
  3. % Default transfer function for NeXT Laser Printer.
  4.  
  5. /_NXTfr-400 [
  6.     0 .27 .37 .43 .48 .52 .58 .63 .68 .73 .78
  7.     .81 .84 .875 .91 .932 .955 .967 .98 .99 1
  8. ] def % best for 400 dpi
  9.  
  10. /NXDefaultTransfer {
  11.     2 dict begin
  12.         //_NXTfr-400 length 1 sub mul /input exch def
  13.         input ceiling input floor eq {
  14.             //_NXTfr-400 input cvi get
  15.         }{ % else (non-integer input)
  16.             //_NXTfr-400 input floor cvi get input ceiling input sub mul
  17.             //_NXTfr-400 input ceiling cvi get input input floor sub mul add
  18.         } ifelse
  19.     end
  20. } bind def
  21.  
  22. currentdict /_NXTfr-400 undef  %% cleanup
  23.