SVImage.mesa
Author: Eric Bier
Last edited by Bier on July 29, 1984 4:39:20 pm PDT
Contents: Routines for manipulating 24 bit per pixel color images
DIRECTORY
AIS,
GraphicsColor,
Graphics,
Rope,
SV2d,
SV3d,
SVModelTypes;
SVImage: DEFINITIONS =
BEGIN
BoundBox: TYPE = SVModelTypes.BoundBox;
Color: TYPE = GraphicsColor.Color;
Matrix4by4: TYPE = SV3d.Matrix4by4;
Point2d: TYPE = SV2d.Point2d;
Image: TYPE = REF ImageObj;
ImageObj: TYPE = RECORD [
bAndWOnly: BOOL, redWindow, greenWindow, blueWindow, bwWindow: AIS.WRef];
OpenImage: PROC [aisRope: Rope.ROPE, bAndWOnly: BOOL, realMinX, realMinY, realMaxX, realMaxY, resolution: REAL, commentString: Rope.ROPE] RETURNS [I: Image, numberOfSamplesX, numberOfSamplesY: NAT];
PutImage: PROC [I: Image, i, j: INTEGER, color: Color, xSamples, ySamples: NAT];
CloseImage: PROC [I: Image, aisRope: Rope.ROPE];
DrawAndScaleBlackAndWhiteImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, screenWRTCamera: Point2d, realMinX, realMinY, realMaxX, realMaxY: REAL];
DrawAlignedBlackAndWhiteImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, resolution: REAL, screenWRTCamera: Point2d, boundBox: BoundBox, raw: BOOL];
DrawBlackAndWhiteImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, clipBox: BoundBox ← NIL, resolution: REAL ← 72.0, raw: BOOL];
DrawAndScaleColorImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, screenWRTCamera: Point2d, realMinX, realMinY, realMaxX, realMaxY: REAL];
DrawAlignedColorImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, resolution: REAL, screenWRTCamera: Point2d, boundBox: BoundBox];
DrawColorImage: PROC [dc: Graphics.Context, imageName: Rope.ROPE, clipBox: BoundBox ← NIL, resolution: REAL ← 72.0];
END.