ImagerFourColorContext.mesa
Copyright Ó 1989, 1991, 1993 by Xerox Corporation. All rights reserved.
Tim Diebert: January 6, 1993 11:55 am PST
DIRECTORY
Imager USING [Context],
ImagerSample USING [SampleMap],
ImagerTransformation USING [ScanMode],
PrintColor USING [ColorCorrection, HalftoneProperties, LogicalDevice],
SF USING [Vec],
Vector2 USING [VEC];
ImagerFourColorContext: CEDAR DEFINITIONS
~ BEGIN
Toner: TYPE ~ {black, cyan, magenta, yellow};
Create: PROC [deviceSpaceSize: SF.Vec, scanMode: ImagerTransformation.ScanMode, surfaceUnitsPerInch: Vector2.VEC, logicalDevice: PrintColor.LogicalDevice, halftoneProperties: PrintColor.HalftoneProperties, correction: PrintColor.ColorCorrection, interpolate: BOOL, bitmaps: ARRAY Toner OF ImagerSample.SampleMap]
RETURNS [Imager.Context];
deviceSpaceSize gives the slow and fast dimensions of the entire device space.
scanMode specifies the scan direction information
surfaceUnitsPerInch specifies the resolution in the slow(x) and fast(y) directions
logicalDevice is a code that specifies the particular logical device
halftoneProperties specify the halftoning characteristics for each separation
correction provides a hook for doing color correction
interpolate specifies whether or not to interpolate sampled images
bitmaps specifies an array of samplemaps to image into
SetBitmaps: PROC [context: Imager.Context,
bitmaps: ARRAY Toner OF ImagerSample.SampleMap];
Sets the bitmaps under the context; the bitmaps don't have to cover all of the device space, but the must be the same size.
END.