home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / prefs / printergfx.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  3KB  |  98 lines

  1. #ifndef PREFS_PRINTERGFX_H
  2. #define PREFS_PRINTERGFX_H
  3. /*
  4. **    $VER: printergfx.h 38.2 (3.7.91)
  5. **    Includes Release 40.15
  6. **
  7. **    File format for graphics printer preferences
  8. **
  9. **    (C) Copyright 1991-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_IFFPARSE_H
  21. #include <libraries/iffparse.h>
  22. #endif
  23.  
  24.  
  25. /*****************************************************************************/
  26.  
  27.  
  28. #define ID_PGFX MAKE_ID('P','G','F','X')
  29.  
  30.  
  31. struct PrinterGfxPrefs
  32. {
  33.     LONG  pg_Reserved[4];
  34.     UWORD pg_Aspect;
  35.     UWORD pg_Shade;
  36.     UWORD pg_Image;
  37.     WORD  pg_Threshold;
  38.     UBYTE pg_ColorCorrect;
  39.     UBYTE pg_Dimensions;
  40.     UBYTE pg_Dithering;
  41.     UWORD pg_GraphicFlags;
  42.     UBYTE pg_PrintDensity;        /* Print density 1 - 7 */
  43.     UWORD pg_PrintMaxWidth;
  44.     UWORD pg_PrintMaxHeight;
  45.     UBYTE pg_PrintXOffset;
  46.     UBYTE pg_PrintYOffset;
  47. };
  48.  
  49. /* constants for PrinterGfxPrefs.pg_Aspect */
  50. #define PA_HORIZONTAL 0
  51. #define PA_VERTICAL   1
  52.  
  53. /* constants for PrinterGfxPrefs.pg_Shade */
  54. #define PS_BW        0
  55. #define PS_GREYSCALE    1
  56. #define PS_COLOR    2
  57. #define PS_GREY_SCALE2    3
  58.  
  59. /* constants for PrinterGfxPrefs.pg_Image */
  60. #define PI_POSITIVE 0
  61. #define PI_NEGATIVE 1
  62.  
  63. /* flags for PrinterGfxPrefs.pg_ColorCorrect */
  64. #define PCCB_RED   1    /* color correct red shades   */
  65. #define PCCB_GREEN 2    /* color correct green shades */
  66. #define PCCB_BLUE  3    /* color correct blue shades  */
  67.  
  68. #define PCCF_RED   (1<<0)
  69. #define PCCF_GREEN (1<<1)
  70. #define PCCF_BLUE  (1<<2)
  71.  
  72. /* constants for PrinterGfxPrefs.pg_Dimensions */
  73. #define PD_IGNORE   0  /* ignore max width/height settings */
  74. #define PD_BOUNDED  1  /* use max w/h as boundaries       */
  75. #define PD_ABSOLUTE 2  /* use max w/h as absolutes       */
  76. #define PD_PIXEL    3  /* use max w/h as prt pixels       */
  77. #define PD_MULTIPLY 4  /* use max w/h as multipliers       */
  78.  
  79. /* constants for PrinterGfxPrefs.pg_Dithering */
  80. #define PD_ORDERED    0  /* ordered dithering    */
  81. #define PD_HALFTONE    1  /* halftone dithering    */
  82. #define PD_FLOYD    2  /* Floyd-Steinberg dithering */
  83.  
  84. /* flags for PrinterGfxPrefs.pg_GraphicsFlags */
  85. #define PGFB_CENTER_IMAGE    0    /* center image on paper */
  86. #define PGFB_INTEGER_SCALING    1    /* force integer scaling */
  87. #define PGFB_ANTI_ALIAS        2    /* anti-alias image     */
  88.  
  89. #define PGFF_CENTER_IMAGE    (1<<0)
  90. #define PGFF_INTEGER_SCALING    (1<<1)
  91. #define PGFF_ANTI_ALIAS        (1<<2)
  92.  
  93.  
  94. /*****************************************************************************/
  95.  
  96.  
  97. #endif /* PREFS_PRINTERGFX_H */
  98.