a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
Include
 classes
 clib
 datatypes
 devices
 diskfont
 dos
 exec
 gadgets
 graphics
 hardware
 images
 intuition
 libraries
 pragma
 pragmas
 prefs
  asl.h / .i
  font.h / .i
  icontrol.h / .i
  input.h / .i
  locale.h / .i
  overscan.h / .i
  palette.h / .i
  pointer.h / .i
  prefhdr.h / .i
  printergfx.h / .i
  printerps.h / .i
  printertxt.h / .i
  reaction.h
  screenmode.h / .i
  serial.h / .i
  sound.h / .i
  wbpattern.h / .i
  workbench.h / .i
 proto
 reaction
 resources
 rexx
 utility
 workbench
GuruMeditation
Docs » Include » prefs » printergfx.h / .i
#ifndef PREFS_PRINTERGFX_H
#define PREFS_PRINTERGFX_H
/*
**	$VER: printergfx.h 38.2 (3.7.1991)
**	Includes Release 45.1
**
**	File format for graphics printer preferences
**
**	(C) Copyright 1991-2001 Amiga, Inc.
**	All Rights Reserved
*/

/*****************************************************************************/


#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

#ifndef LIBRARIES_IFFPARSE_H
#include <libraries/iffparse.h>
#endif


/*****************************************************************************/


#define ID_PGFX MAKE_ID('P','G','F','X')


struct PrinterGfxPrefs
{
    LONG  pg_Reserved[4];
    UWORD pg_Aspect;
    UWORD pg_Shade;
    UWORD pg_Image;
    WORD  pg_Threshold;
    UBYTE pg_ColorCorrect;
    UBYTE pg_Dimensions;
    UBYTE pg_Dithering;
    UWORD pg_GraphicFlags;
    UBYTE pg_PrintDensity;		/* Print density 1 - 7 */
    UWORD pg_PrintMaxWidth;
    UWORD pg_PrintMaxHeight;
    UBYTE pg_PrintXOffset;
    UBYTE pg_PrintYOffset;
};

/* constants for PrinterGfxPrefs.pg_Aspect */
#define PA_HORIZONTAL 0
#define PA_VERTICAL   1

/* constants for PrinterGfxPrefs.pg_Shade */
#define PS_BW		0
#define PS_GREYSCALE	1
#define PS_COLOR	2
#define PS_GREY_SCALE2	3

/* constants for PrinterGfxPrefs.pg_Image */
#define PI_POSITIVE 0
#define PI_NEGATIVE 1

/* flags for PrinterGfxPrefs.pg_ColorCorrect */
#define PCCB_RED   1	/* color correct red shades   */
#define PCCB_GREEN 2	/* color correct green shades */
#define PCCB_BLUE  3	/* color correct blue shades  */

#define PCCF_RED   (1<<0)
#define PCCF_GREEN (1<<1)
#define PCCF_BLUE  (1<<2)

/* constants for PrinterGfxPrefs.pg_Dimensions */
#define PD_IGNORE   0  /* ignore max width/height settings */
#define PD_BOUNDED  1  /* use max w/h as boundaries	   */
#define PD_ABSOLUTE 2  /* use max w/h as absolutes	   */
#define PD_PIXEL    3  /* use max w/h as prt pixels	   */
#define PD_MULTIPLY 4  /* use max w/h as multipliers	   */

/* constants for PrinterGfxPrefs.pg_Dithering */
#define PD_ORDERED	0  /* ordered dithering	*/
#define PD_HALFTONE	1  /* halftone dithering	*/
#define PD_FLOYD	2  /* Floyd-Steinberg dithering */

/* flags for PrinterGfxPrefs.pg_GraphicsFlags */
#define PGFB_CENTER_IMAGE	0	/* center image on paper */
#define PGFB_INTEGER_SCALING	1	/* force integer scaling */
#define PGFB_ANTI_ALIAS		2	/* anti-alias image	 */

#define PGFF_CENTER_IMAGE	(1<<0)
#define PGFF_INTEGER_SCALING	(1<<1)
#define PGFF_ANTI_ALIAS		(1<<2)


/*****************************************************************************/


#endif /* PREFS_PRINTERGFX_H */

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anarchy

ANA
RZR
KEF
AYS

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se