home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / IMGPROC.ZIP / C7.ZIP / PRINTER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-06  |  1.6 KB  |  47 lines

  1. /*  
  2. Copyright 1990 by John Wiley & Sons, Inc.
  3.           All Rights Reserved.
  4. */
  5. /****************************************/
  6. /*      Graphics Print Include File     */
  7. /*      written by Craig A. Lindley     */
  8. /*                                      */
  9. /*   Vers: 1.0  Last Update: 11/29/89   */
  10. /****************************************/
  11.  
  12. #ifndef __BYTE
  13. #define __BYTE
  14. typedef unsigned char BYTE;
  15. #endif
  16.  
  17. #define POSPRINT       TRUE        /* pixel over threshold prints black */
  18. #define NEGPRINT      FALSE        /* pixel over threshold prints white */
  19.  
  20. /* printer status equates */
  21. #define PRTTIMEOUT     0x01
  22. #define PRTBUSYBIT     0x80        /* msb of printer status is busy bit */
  23. #define PRINTERINT     0x17        /* printer BIOS interrupt 17H number */
  24. #define PRTCHARCODE       0        /* int 17H print character func. code */
  25. #define INITPRTCODE       1        /* int 17H initialize printer func. code */
  26. #define GETPRTSTATUSCODE  2        /* int 17H get printer status func. code */
  27. #define LPT1              0        /* printer select codes for BIOS */
  28. #define LPT2              1
  29. #define LPT3              2
  30. #define PIXELSPERPASS     8        /* 8 pixel printed per print head pass */
  31.  
  32. typedef enum {LowResMode, MedResMode, HighResMode} PrinterModes;
  33. typedef enum {BayerMatrix, RylanderMatrix} MatrixType;
  34.  
  35. /* structure for holding a half tone dot pattern */
  36. struct DotPatterns
  37. {
  38.    BYTE Row1;
  39.    BYTE Row2;
  40.    BYTE Row3;
  41.    BYTE Row4;
  42. };
  43.  
  44.  
  45. /* Function Declarations */
  46. CompletionCode PrtScreen (unsigned NegPos);
  47.