Charles.Forsyth20060303-partialeea662d19 years agoHistory
46 lines · 929 B · Text
RawDownload
.TH PSLIB 2.SH NAMEpslib - postscript generation.SH SYNOPSIS.EXinclude "pslib.m";pslib := load Pslib Pslib->PATH; init: fn(bufio: Bufio);writeimage: fn(f: ref Bufio->Iobuf,			img: ref Draw->Image, dpi: int): string;.EE.SH DESCRIPTION.B Pslibmust first be initialised by calling.B Initwith a loaded Bufio module..B Writeimagewrites a Postscript file containing the data within.I imgto.IR f ,which should first have been opened for writingby.IR bufio ..I Dpiis a value specifying the pixel width of pixels in.IR img ;the width (and height) of.I dpidots in.I imgwill be one inch when the Postscript isrendered..SH SOURCE.B /appl/lib/pslib.b.SH SEE ALSO.IR bufio (2),.IR draw-image (2).SH BUGSThe resulting Postscript is really only suitable foruse as encapsulated Postscript, as there's no wayto set the destination paper size..PPThere should be many more useful functionsin this module.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t