nst_ps_init - initialize postscript output

PROTOTYPE

/*-------------------------------------------------------------------------- some GL-like drawing operations for postscript files: --------------------------------------------------------------------------*/ static float gfPsX,gfPsY; static float gfPsCX,gfPsCY; static float gfPsCurrentLineWidth = 0; static float gfPsLineWidthMin = 0; static float gfPsLineWidthScale = 1; /* Line width scaling for postscript output: linewidth in points is gfPsLineWidth0 + gfPsLineWidthScale*fLineWidth where fLineWidth is the linewidth requested in pixels for the screen image. Defaults are gfPsLineWidthMin = 0 thinnest possible line gfPsLineWidthScale = 1 1 pixel => 1 point The two parameters a=gfPsLineWidth0 and b=gfPsLineWidthScale can be set with the %a:bL option in the nst_ps_init routine. */ static int giPsRectInvert; static int giPsOrigColors; void nst_ps_init(FILE *fp, float fXll, float fYll, float fXur, float fYur, float fDxcm, float fDycm, char *pcOpt)

ARGUMENTS

FILE *fp
- not documented in source --
FILE *fp
pointer to output file (must be open for writing)
float xllcm
horizontal position of lower left corner of image on page
float yllcm
vertical position of lower left corner of image on page
float dxcm
width of bounding box of image in cm
float dycm
height of bounding box of image in cm
FILE *fp
float fXll
- not documented in source --
float fYll
- not documented in source --
float fXur
- not documented in source --
float fYur
- not documented in source --
float fDxcm
- not documented in source --
float fDycm
- not documented in source --
char *pcOpt
options: see below

DESCRIPTION:

Initializes postscript output for NST window redraw. The redrawn window contents in the pixel rectangle [fXll,fXur]x[fYll,fYur] will become scaled into an encapsulated postscript image of fDxcm cm width and fDycm cm height. pcOpt allows to specify several options:
%wL, %w:sL
translation of screen pixel linewidth into postscript linewidth in points. If neither of the two options is given, the default is to translate 1 pixel screen linewidth into 1 point postscript linewidth. The first form %wL makes all lines w points wide. The second form makes all lines w+s*screenwidth points wide, where screenwidth is the linewidth in pixels on the screen. A width of 0 points is translated into the thinnest possible line of the output device.
%wG
set the line gray level to the uniform value of w (0=black, 1=white)
%D
enable translation of colored lines into dash or dot patterns for output devices that don't support color (each color is then translated to a separate, prespecified dash or dot pattern).
%I
invert intensity values of bitmap image portions

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../nstsrc/nst_aux4.c