ViewersToIP.mesa
Copyright Ó 1985, 1992 by Xerox Corporation. All rights reserved.
Eric Nickell, August 1, 1985 12:53:29 pm PDT
DIRECTORY
Rope USING [ROPE],
Vector2 USING [VEC],
ViewerClasses USING [Viewer];
ViewersToIP: CEDAR DEFINITIONS
~ BEGIN
ViewerToIP: PROC [v: ViewerClasses.Viewer, file: Rope.ROPE, version: Rope.ROPE ¬ NIL, pixelsPerInch: REAL ¬ 72.0, pageSize: Vector2.VEC ¬ [8.5, 11], clipChildren: BOOLEAN ¬ FALSE];
Creates an interpress master in file file, by `painting' the viewer into the master.
version refers to the version of Interpress in which to create the master. If version is not defaulted, should be of the form "2.1", for example.
pixelsPerInch is used to properly scale the context which will be fed to v's PaintProc. The default will cause the interpress master context to appear roughly like a full-sized left-column viewer.
pageSize specifies the image size in inches.
For images to be painted properly, clipChildren should be set to TRUE. In normal applications, however, setting it to FALSE enables repainting of the master in something less than geological time.
END.