NGPSWK(3NCARG) | NCAR GRAPHICS | NGPSWK(3NCARG) |
NGPSWK - returns the workstation type, suitable for use as the third argument in a call to the NCAR GKS routine GOPWK, for the PostScript workstation whose attributes are specified in the function arguments.
CALL NGPSWK(PSTYPE, ORIENT, COLOR)
#include <ncarg/ncargC.h>
void c_ngpswk(char *pstype, char *orient, char *color)
The C binding argument descriptions are the same as the FORTRAN argument descriptions.
In specifying the arguments, only enough characters need be entered so that the values can be differentiated. For example, to specify color, using 'C' as the third argument would be sufficient. Either upper case or lower case is accepted.
The invocation:
IWK = NGPSWK('EPS', 'LANDSCAPE', 'COLOR')
would return the value "27" for IWK. This is the workstation type that would be used as the third argument in a call to the GKS function GOPWK for a workstation that would produce Encapsulated color Postscript in landscape mode.
To use NGPSWK or c_ngpswk, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
Warning messages will be issued if one calls NGPSWK with unrecognizable arguments. The value 'PS' is used if the first argument is unrecognized; the value 'PORTRAIT' is used if the second argument is unrecognized; the value 'COLOR' is used if the third argument is unrecognized.
Online: gopwk(3NCARG), ncarg_gks(3NCARG), ncarg_cbind(3NCARG)
Online URL: http://ngwww.ucar.edu/ngdoc/ng/gks/gkshome.html
Hardcopy: NCAR Graphics Fundamentals, UNIX Version;
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
April 1994 | UNIX |