ftp.nice.ch/peanuts/GeneralData/Documents/adobe/DPS.UNIXReview.Aug94.tar.gz

Butterfly.eps
[View Butterfly.eps as PDF] 
FrenchHorn.eps
[View FrenchHorn.eps as PDF] 
HW_DPS_printf.c
[View HW_DPS_printf.c] 
HW_DPS_sop.c
[View HW_DPS_sop.c] 
HW_DPS_wrap.c
[View HW_DPS_wrap.c] 
HW_Xonly.c
[View HW_Xonly.c] 
HW_wrap.h
[View HW_wrap.h] 
HW_wrap.psw
 
Makefile
 
README
 
eps1.c
[View eps1.c] 
eps2.c
[View eps2.c] 
eps2_wrap.h
[View eps2_wrap.h] 
eps2_wrap.psw
 

README

This directory contains the sample programs discussed in the August 94
UNIX REVIEW article "Programming In Display PostScript".

There are six programs in this directory: 

    HW_Xonly:		Hello World in X only

    HW_DPS_printf:	Hello World using DPS and the DPSPrintf function

    HW_DPS_sop:		Hello World using DPS and single-operator procedures

    HW_DPS_wrap:	Hello World using DPS and wraps

    eps1:		Display an EPS file using DPS

    eps2:		Display, rotate, and scale and EPS file using DPS


This directory also contains two sample EPS file: Butterfly.eps and 
FrenchHorn.eps.

The eps2 program is not described in the article.  eps2 expands the eps1
program by giving you the ability to rotate and scale the image.

Both eps1 and eps2 require an argument on the command-line that represents
a file that contains an EPS image.  For example:

	eps1 Butterfly.eps

The eps2 program also takes additional optional arguments for rotating
and scaling:

	eps2 [-rotate D] [-scalex X] [-scaley Y] eps-file

These programs have been compiled and tested on Solaris 2.3 with the
SPARCcompiler C3.0.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.