home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright 1990 by John Wiley & Sons, Inc.
- All Rights Reserved.
- */
- /****************************************/
- /* Graphics Print Include File */
- /* written by Craig A. Lindley */
- /* */
- /* Vers: 1.0 Last Update: 11/29/89 */
- /****************************************/
-
- #ifndef __BYTE
- #define __BYTE
- typedef unsigned char BYTE;
- #endif
-
- #define POSPRINT TRUE /* pixel over threshold prints black */
- #define NEGPRINT FALSE /* pixel over threshold prints white */
-
- /* printer status equates */
- #define PRTTIMEOUT 0x01
- #define PRTBUSYBIT 0x80 /* msb of printer status is busy bit */
- #define PRINTERINT 0x17 /* printer BIOS interrupt 17H number */
- #define PRTCHARCODE 0 /* int 17H print character func. code */
- #define INITPRTCODE 1 /* int 17H initialize printer func. code */
- #define GETPRTSTATUSCODE 2 /* int 17H get printer status func. code */
- #define LPT1 0 /* printer select codes for BIOS */
- #define LPT2 1
- #define LPT3 2
- #define PIXELSPERPASS 8 /* 8 pixel printed per print head pass */
-
- typedef enum {LowResMode, MedResMode, HighResMode} PrinterModes;
- typedef enum {BayerMatrix, RylanderMatrix} MatrixType;
-
- /* structure for holding a half tone dot pattern */
- struct DotPatterns
- {
- BYTE Row1;
- BYTE Row2;
- BYTE Row3;
- BYTE Row4;
- };
-
-
- /* Function Declarations */
- CompletionCode PrtScreen (unsigned NegPos);