550N/A/*
550N/A * DSWwraps.psw
550N/A *
550N/A * (c) Copyright 1993-1994 Adobe Systems Incorporated.
910N/A * All rights reserved.
910N/A *
550N/A * Permission to use, copy, modify, distribute, and sublicense this software
550N/A * and its documentation for any purpose and without fee is hereby granted,
919N/A * provided that the above copyright notices appear in all copies and that
919N/A * both those copyright notices and this permission notice appear in
919N/A * supporting documentation and that the name of Adobe Systems Incorporated
919N/A * not be used in advertising or publicity pertaining to distribution of the
919N/A * software without specific, written prior permission. No trademark license
919N/A * to use the Adobe trademarks is hereby granted. If the Adobe trademark
919N/A * "Display PostScript"(tm) is used to describe this software, its
919N/A * functionality or for any other purpose, such use shall be limited to a
919N/A * statement that this software works in conjunction with the Display
919N/A * PostScript system. Proper trademark attribution to reflect Adobe's
919N/A * ownership of the trademark shall be given whenever any such reference to
919N/A * the Display PostScript system is made.
919N/A *
919N/A * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
919N/A * ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
919N/A * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
919N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
550N/A * NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE
550N/A * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
550N/A * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
550N/A * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
550N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT
550N/A * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
550N/A *
550N/A * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
550N/A * Incorporated which may be registered in certain jurisdictions
550N/A *
550N/A * Author: Adobe Systems Incorporated
550N/A */
550N/A
550N/Adefineps _DPSSWGetTransform(DPSContext ctxt | float ctm[6], invctm[6])
550N/A matrix currentmatrix dup ctm
550N/A matrix invertmatrix invctm
550N/Aendps
550N/A
550N/Adefineps _DPSSWSetMatrixAndGetTransform(DPSContext ctxt;
550N/A float tx, ty, s; int hx, hy
550N/A | float ctm[6], invctm[6]; int *xoffset, *yoffset)
550N/A initmatrix
550N/A tx ty translate
550N/A s s scale
550N/A hx hy sethalftonephase
550N/A initclip
matrix currentmatrix dup ctm
matrix invertmatrix invctm
currentXoffset yoffset xoffset
endps
defineps _DPSSWSetMatrix(DPSContext ctxt; float tx, ty, s; int hx, hy)
initmatrix
tx ty translate
s s scale
hx hy sethalftonephase
initclip
endps
defineps _DPSSWSetRectViewClip(DPSContext ctxt;
float numstring rect[numrect]; int numrect)
rect rectviewclip
endps
defineps _DPSSWColormapMatch(DPSContext ctxt; int colormap | boolean *match)
currentXgcdrawablecolor % gc draw x y [....colormap...]
10 get colormap eq match % gc draw x y
pop pop pop pop
endps