home *** CD-ROM | disk | FTP | other *** search
- (*****************************************************************************)
- (* Unit Graphics: Extended Graphics Routines DOCUMENTATION *)
- (* *)
- (* Copyright 1988, Escape Technologies *)
- (*****************************************************************************)
-
- Unit Graphics;
-
- Interface
-
- Uses Graph;
-
- Var BoxPoly:Array[1..4] of PointType;
- TriPoly:Array[1..3] of PointType;
-
- {Drawing Commands}
- Procedure DrawBox(X1,Y1,X2,Y2:Integer; Color:Word);
- Procedure DrawTriangle(X1,Y1,X2,Y2,X3,Y3:Integer; Color:Word);
- Procedure DrawFilledBox(X1,Y1,X2,Y2:Integer; Outline:Boolean);
- Procedure DrawFilledTriangle(X1,Y1,X2,Y2,X3,Y3:Integer; Outline:Boolean);
- Procedure DrawCircleArc(X,Y,XRadius,StAngle,EndAngle:Integer; Color:Word);
- Procedure DrawEllipseArc(X,Y,XRadius,YRadius,StAngle,EndAngle:Integer;
- Color:Word);
- Procedure DrawPieSlice(X,Y,XRadius,StAngle,EndAngle:Integer; Color:Word);
- Procedure DrawCircle(X,Y,XRadius:Integer; Color:Word);
- Procedure DrawEllipse(X1,Y1,X2,Y2:Integer; Color:Word);
- Procedure DrawLine(X1,Y1,X2,Y2:Integer; Color:Word);
- Procedure DrawPixel(X,Y:Integer; Color:Word);
- Function PixelAt(X,Y:Integer):Boolean;
- Function PixelColorAt(X,Y:Integer):Word;
-
- {Text Commands}
- Procedure DrawTextXY(X,Y:Integer; Color:Word; WhatToDraw:String);
- Procedure DrawText(Color:Word; WhatToDraw:String);
- Procedure DrawTextLn(Color:Word; WhatToDraw:String);
-
- {Screen Saving and Loading Commands}
- Procedure SaveScreen(FileName:String);
- Procedure SaveScreenP(FileName:String);
- Procedure LoadScreen(FileName:String);
- Procedure LoadScreenP(FileName:String; Offset:Byte);