1 #ifndef PREFS_PRINTERGFX_H 2 #define PREFS_PRINTERGFX_H 3 4 /* 5 printer graphics prefs definitions 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 # include <exec/types.h> 12 #endif 13 14 #ifndef LIBRARIES_IFFPARSE_H 15 # include <libraries/iffparse.h> 16 #endif 17 18 #pragma pack(2) 19 20 21 #define ID_PGFX MAKE_ID('P','G','F','X') 22 23 24 struct PrinterGfxPrefs 25 { 26 LONG pg_Reserved[4]; 27 UWORD pg_Aspect; 28 UWORD pg_Shade; 29 UWORD pg_Image; 30 WORD pg_Threshold; 31 UBYTE pg_ColorCorrect; 32 UBYTE pg_Dimensions; 33 UBYTE pg_Dithering; 34 UWORD pg_GraphicFlags; 35 UBYTE pg_PrintDensity; 36 UWORD pg_PrintMaxWidth; 37 UWORD pg_PrintMaxHeight; 38 UBYTE pg_PrintXOffset; 39 UBYTE pg_PrintYOffset; 40 }; 41 42 43 #define PA_HORIZONTAL 0 44 #define PA_VERTICAL 1 45 46 47 #define PS_BW 0 48 #define PS_GREYSCALE 1 49 #define PS_COLOR 2 50 #define PS_GREY_SCALE2 3 51 52 53 #define PI_POSITIVE 0 54 #define PI_NEGATIVE 1 55 56 57 #define PCCB_RED 0 58 #define PCCB_GREEN 1 59 #define PCCB_BLUE 2 60 61 #define PCCF_RED (1<<PCCB_RED) 62 #define PCCF_GREEN (1<<PCCB_GREEN) 63 #define PCCF_BLUE (1<<PCCB_BLUE) 64 65 66 #define PD_IGNORE 0 67 #define PD_BOUNDED 1 68 #define PD_ABSOLUTE 2 69 #define PD_PIXEL 3 70 #define PD_MULTIPLY 4 71 72 73 #define PD_ORDERED 0 74 #define PD_HALFTONE 1 75 #define PD_FLOYD 2 76 77 78 #define PGFB_CENTER_IMAGE 0 79 #define PGFB_INTEGER_SCALING 1 80 #define PGFB_ANTI_ALIAS 2 81 82 #define PGFF_CENTER_IMAGE (1<<PGFB_CENTER_IMAGE) 83 #define PGFF_INTEGER_SCALING (1<<PGFB_INTEGER_SCALING) 84 #define PGFF_ANTI_ALIAS (1<<PGFB_ANTI_ALIAS) 85 86 87 #pragma pack() 88 89 #endif /* PREFS_PRINTERGFX_H */