(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

Single-Operator Functions

Single-operator functions provide a C language interface to the individual operators of the PostScript language.  The specification for a single-operator function is identical to that of the operator it represents.  The PostScript Language Reference Manual, by Adobe Systems, Inc., provides the specifications of all the standard operators.  Listed below are the single-operator functions that correspond to operators found in OpenStep but not in the standard implementation of the PostScript language.

These functions have either a ªPSº or a ªDPSº prefix.  For every single-operator function with a ªPSº prefix, there's a corresponding single-operator function with a ªDPSº prefix.  The PS and DPS functions are identical except that DPS functions take an additional (first) argument that represents the PostScript execution context.  

Besides using the standard C types, some of these single-operator functions use userobject, which is an int that refers to the value returned by DPSDefineUserObject().   

ªPSº Prefix Functions

void	PScomposite(float x, float y, float width, float height, userobject srcGstate, float destx, float desty, int op)

void	PScompositerect(float destx, float desty, float width, float height, int op)

void	PScurrentalpha(float *pcoverage)

void	PSdissolve(float srcx, float srcy, float width, float height, userobject srcGstate, float destx, float desty, float delta)

void	PSsetalpha(float coverage)

ªDPSº Prefix Functions

void	DPScomposite(DPSContext ctxt, float x, float y, float width, float height, userobject srcGstate, float destx, float desty, int op)

void	DPScompositerect(DPSContext ctxt, float destx, float desty, float width, float height, int op)

void	DPScurrentalpha(DPSContext ctxt, float *pcoverage)

void	DPSdissolve(DPSContext ctxt, float srcx, float srcy, float width, float height, userobject srcGstate, float destx, float desty, float delta)

void	DPSsetalpha(DPSContext ctxt, float coverage)