<> <> DIRECTORY ImagerBasic USING [Path, IntRectangle, IntVec, PixelArray], Imager USING [Context]; ImagerInteractiveImpl: CEDAR PROGRAM IMPORTS EXPORTS Imager = BEGIN OPEN ImagerBasic; <> <> <> HiliteArea: PUBLIC PROC [context: Context, area: Path] = {}; -- Invert on LF, device dependent <> HiliteIntRectangle: PUBLIC PROC [context: Context, area: IntRectangle] = {}; MoveIntRectangle: PUBLIC PROC [context: Context, source: IntRectangle, destination: IntVec] = {}; <> GetPixelArray: PUBLIC PROC [context: Context, source: IntRectangle, image: PixelArray _ NIL] RETURNS [PixelArray] = { RETURN [ context.deviceProcs.getPxls[source] ]; }; PutPixelArray: PUBLIC PROC [context: Context, destination: IntRectangle, image: PixelArray] = {}; <> StartDoubleBuffering: PUBLIC PROC [context: Context] = { <> pxls: PixelArray; pxls _ context.deviceProcs.openPixelBuffer[]; }; StopDoubleBuffering: PUBLIC PROC [context: Context] = { context.deviceProcs.closePixelBuffer[]; }; END.