<> <> <> <> DIRECTORY ImagerPath USING [PathProc], ImagerPixelMap USING [DeviceRectangle, Function, PixelMap], ImagerTransformation USING [Transformation]; ImagerScanConverter: CEDAR DEFINITIONS ~ BEGIN PathProc: TYPE ~ ImagerPath.PathProc; Transformation: TYPE ~ ImagerTransformation.Transformation; DeviceRectangle: TYPE ~ ImagerPixelMap.DeviceRectangle; PixelMap: TYPE ~ ImagerPixelMap.PixelMap; Function: TYPE ~ ImagerPixelMap.Function; DevicePath: TYPE ~ REF DevicePathRep; DevicePathRep: TYPE; CreatePath: PROC [path: PathProc, transformation: Transformation _ NIL, clipBox: DeviceRectangle, scratch: DevicePath _ NIL -- for re-use of storage ] RETURNS [DevicePath]; BoundingBox: PROC [devicePath: DevicePath] RETURNS [DeviceRectangle]; <> <<>> NumberOfRuns: PROC [devicePath: DevicePath] RETURNS [numberOfRuns: INT]; <> <<>> ConvertToRuns: PROC [devicePath: DevicePath, runProc: PROC [sMin, fMin: INTEGER, fSize: NAT], clipBox: DeviceRectangle, parityFill: BOOLEAN _ FALSE ]; ConvertToPixels: PROC [devicePath: DevicePath, pixelMap: PixelMap, value: CARDINAL _ 1, parityFill: BOOLEAN _ FALSE, function: Function _ [null, null] ]; ConvertToManhattanPolygon: PROC [devicePath: DevicePath, clipBox: DeviceRectangle, parityFill: BOOLEAN _ FALSE ] RETURNS [LIST OF DeviceRectangle]; <> END.