GraphicsToPress.mesa
Michael Plass, April 11, 1983 11:41 am
DIRECTORY
Graphics, IO, Rope;
GraphicsToPress: CEDAR DEFINITIONS = {
ROPE: TYPE = Rope.ROPE;
NewContext: PUBLIC PROCEDURE [fileName: ROPE, resolution: REAL ← 384] RETURNS [Graphics.Context];
Easy call for simple applications; resolution is in pixels per inch
Close: PUBLIC PROCEDURE [context: Graphics.Context];
To finish off the press file.
NewPage: PUBLIC PROCEDURE [context: Graphics.Context];
To start a new page of the press file
SetPageSize: PUBLIC PROCEDURE [context: Graphics.Context, width: REAL ← 72*8.5, height: REAL ← 72*11];
Applies for the current and following pages. Setting width bigger than height will result in landscape output.
SetHalftoneResolution: PUBLIC PROCEDURE [context: Graphics.Context, halftoneResolution: REAL ← 144 -- pixels per inch
] RETURNS [old: REAL];
Halftones may be rendered at lower than normal resolution.
SetFatness: PUBLIC PROCEDURE [context: Graphics.Context, halftoneResolution: REAL ← 0.2 -- in 72-per-inch points
] RETURNS [old: REAL];
How much to fatten up solid-color areas.
NewContextFromStream: PUBLIC PROCEDURE [
outputStream: IO.STREAM,
fileNameForHeaderPage: ROPENIL,
resolution: REAL ← 384 -- in bits per inch
] RETURNS [Graphics.Context];
Makes a context that will write a press file.
}.