DIRECTORY Imager USING [Color, ColorOperator, Context, Font, PixelArray], IO USING [STREAM], Rope USING [ROPE]; ImagerInterpress: CEDAR DEFINITIONS ~ BEGIN Ref: TYPE ~ REF Rep; Rep: TYPE; Create: PROC [fileName: Rope.ROPE, header: Rope.ROPE _ NIL] RETURNS [Ref]; CreateFromStream: PROC [stream: IO.STREAM, header: Rope.ROPE] RETURNS [Ref]; DeclareFont: PROC [self: Ref, font: Imager.Font]; DeclareColor: PROC [self: Ref, color: Imager.Color]; DeclarePixelArray: PROC [self: Ref, pixelArray: Imager.PixelArray]; DeclareColorOperator: PROC [self: Ref, colorOperator: Imager.ColorOperator]; DoPage: PROC [self: Ref, action: PROC [Imager.Context], scale: REAL _ 1.0]; Close: PROC [self: Ref]; Finish: PROC [self: Ref]; END. ΪImagerInterpress.mesa Copyright c 1985 by Xerox Corporation. All rights reserved. Doug Wyatt, May 31, 1985 10:04:31 am PDT Michael Plass, June 7, 1985 1:16:42 pm PDT Imager clients can use this interface to create Interpress masters. Creates a file with the given name. If header=NIL, a header of "Interpress/Xerox/3.0 " is supplied. Retruns a handle aimed at stream; header is inserted verbatim at beginning. Includes a Font in the preamble. Includes a Color in the preamble. Includes a PixelArray in the preamble. Includes a ColorOperator in the preamble. Calls action to generate the next page. Finishes the master and closes the underlying stream. Finishes the master without closing the underlying stream. Κ―˜codešœ™Kšœ Οmœ1™