ImagerBitmapDevicePrivate.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Michael Plass, June 26, 1985 9:45:19 am PDT
Private interface for the benefit of ImagerOps.
DIRECTORY
IIColorDefs USING [SampledColor],
IIPixelMap USING [PixelMap, PixelMapRep, Tile],
IISample USING [Sampler, SampleBuffer],
IITransformation USING [Transformation],
PrincOps USING [BitBltFlags];
IIBitmapDevicePrivate: CEDAR DEFINITIONS
~ BEGIN
grayHeight: NAT ~ 4; -- must not exceed 16, should be a power of 2
GrayArray: TYPE ~ ARRAY [0..grayHeight) OF WORD;
Case: TYPE ~ {nil, noop, constant, stipple, tile, sampled};
Data: TYPE ~ REF DataRep;
DataRep: TYPE ~ RECORD[
sSizeFrame: NAT,
fSizeFrame: NAT,
frame: REF IIPixelMap.PixelMapRep, -- the bitmap
pixelsPerInch: REAL, -- declared resolution
case: Case ← nil, -- what type of color
sampledBlack: BOOLFALSE,
sampledBlackClear: BOOLFALSE,
flags: PrincOps.BitBltFlags ← [], -- bitblt flags
maskBitsFlags: PrincOps.BitBltFlags ← [], -- bitblt flags for fast MaskBits case
grayArray: GrayArray ← ALL[0], -- bitblt gray block
sampledColor: IIColorDefs.SampledColor ← NIL, -- most recently seen sampled color
paToDevice: IITransformation.Transformation ← NIL, -- transformation from sampledColor.pa to display
source: IIPixelMap.PixelMap ← [0, 0, 0, 0, 0, 0, NIL], -- source values from pixel array
tile: IIPixelMap.Tile ← [0, 0, 0, 0, 0, NIL], -- valid if case = tile
sampler: IISample.Sampler ← NIL, -- sampler information
buffer: IISample.SampleBuffer ← NIL, -- scan line buffer for source samples
brick: IISample.SampleBuffer ← NIL, -- halftone brick
extras: REFNIL
];
END.