ImagerHighlightContext.mesa
Copyright Ó 1985, 1989, 1992 by Xerox Corporation. All rights reserved.
Michael Plass, January 28, 1991 11:39 am PST
Russ Atkinson (RRA) August 21, 1989 5:47:23 pm PDT
DIRECTORY
Imager USING [ConstantColor, Context, SampleMap, ScanMode, VEC],
SF USING [Vec];
ImagerHighlightContext: CEDAR DEFINITIONS
~ BEGIN
Creating Contexts
classCode: READONLY ATOM; -- value of Imager.GetClass[context] for these contexts
Create: PROC [deviceSpaceSize: SF.Vec, scanMode: Imager.ScanMode, surfaceUnitsPerInch: Imager.VEC, pixelUnits: BOOL ¬ FALSE, fontCacheName: ATOM ¬ NIL, highlight: Imager.ConstantColor ¬ NIL] RETURNS [Imager.Context];
Creates a context with no SampleMap attached. If no font tuner is supplied, use a fontCacheName equal to classCode, above.
SetSampleMap: PROC [context: Imager.Context, sampleMap: Imager.SampleMap];
Sets a new sample map for the context. Should be 2 bits per sample.
GetSampleMap: PROC [context: Imager.Context] RETURNS [Imager.SampleMap];
Gets the sample map of the context.
END.