home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * DrawingViewWraps.psw
- *
- * Version: 2.0
- * Author: Ken Fromm
- * History:
- * 03-07-91 Added this comment.
- */
-
- defineps PSWDefs ()
- /ldef {load def} bind def
-
- /m /moveto ldef
- /rm /rmoveto ldef
- /l /lineto ldef
- /rl /rlineto ldef
- /c /curveto ldef
- /rc /rcurveto ldef
- /cp /closepath ldef
-
- /w /setlinewidth ldef
- /j /setlinejoin ldef
- /cap /setlinecap ldef
- /mi /setmiterlimit ldef
-
- /g /setgray ldef
- /rgb /setrgbcolor ldef
- /hsb /sethsbcolor ldef
- /cmyk /setcmykcolor ldef
-
- /f /fill ldef
- /s /stroke ldef
- endps
-
- defineps PSWSetlinewidth (float LineWidth)
- LineWidth w
- endps
-
- defineps PSWSetlinejoin (int LineJoin)
- LineJoin j
- endps
-
- defineps PSWSetlinecap (int LineCap)
- LineCap cap
- endps
-
- defineps PSWSetmiterlimit (float MiterLimit)
- MiterLimit mi
- endps
-
- defineps PSWMoveto (float X, Y)
- X Y m
- endps
-
- defineps PSWSetgray (float Gray)
- Gray g
- endps
-
- defineps PSWSetrgbcolor (float Red, Green, Blue)
- Red Green Blue rgb
- endps
-
- defineps PSWSethsbcolor (float Hue, Sat, Bri)
- Hue Sat Bri hsb
- endps
-
- defineps PSWSetcmykcolor (float Cyan, Mag, Yel, Black)
- Cyan Mag Yel Black cmyk
- endps
-
- defineps PSWRmoveto (float X, Y)
- X Y rm
- endps
-
- defineps PSWLineto (float X, Y)
- X Y l
- endps
-
- defineps PSWRlineto (float X, Y)
- X Y rl
- endps
-
- defineps PSWCurveto (float X1, Y1, X2, Y2, X3, Y3)
- X1 Y1 X2 Y2 X3 Y3 c
- endps
-
- defineps PSWRcurveto (float X1, Y1, X2, Y2, X3, Y3)
- X1 Y1 X2 Y2 X3 Y3 rc
- endps
-
- defineps PSWClosepath ()
- cp
- endps
-
- defineps PSWFill ()
- f
- endps
-
- defineps PSWStroke ()
- s
- endps
-
-