Upload
volkwood
View
217
Download
0
Embed Size (px)
Citation preview
8/10/2019 The Graph Unit
1/46
Subsections
8.1 Introduction
o 8.1.1 Requirements
o
8.1.2 A word about mode selection
8.2 Constants, Types and Variables
o 8.2.1 Types
8.3 Function list by category
o 8.3.1 Initialization
o 8.3.2 screen management
o
8.3.3 Color management
o 8.3.4 Drawing primitives
o 8.3.5 Filled drawings
o 8.3.6 Text and font handling
8.4 Functions and procedures
o 8.4.1 Arc
o
8.4.2 Bar
o 8.4.3 Bar3D
o 8.4.4 Circle
o 8.4.5 ClearDevice
o 8.4.6 ClearViewPort
o 8.4.7 CloseGraph
o
8.4.8 DetectGraph
o 8.4.9 DrawPoly
o 8.4.10 Ellipse
o 8.4.11 FillEllipse
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00910000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00910000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00911000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00911000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00912000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00912000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00920000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00920000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00921000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00921000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00930000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00930000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00931000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00931000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00932000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00932000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00933000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00933000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00934000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00934000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00935000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00935000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00936000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00936000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00940000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00940000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00941000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00941000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00942000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00942000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00943000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00943000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00944000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00944000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00945000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00945000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00946000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00946000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00947000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00947000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00948000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00948000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00949000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00949000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009410000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009410000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009411000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009411000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009411000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009410000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00949000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00948000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00947000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00946000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00945000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00944000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00943000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00942000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00941000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00940000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00936000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00935000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00934000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00933000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00932000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00931000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00930000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00921000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00920000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00912000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00911000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009100000000000000008/10/2019 The Graph Unit
2/46
o 8.4.12 FillPoly
o 8.4.13 FloodFill
o 8.4.14 GetArcCoords
o
8.4.15 GetAspectRatio
o 8.4.16 GetBkColor
o 8.4.17 GetColor
o 8.4.18 GetDefaultPalette
o 8.4.19 GetDriverName
o 8.4.20 GetFillPattern
o
8.4.21 GetFillSettings
o 8.4.22 GetGraphMode
o 8.4.23 GetImage
o 8.4.24 GetLineSettings
o 8.4.25 GetMaxColor
o 8.4.26 GetMaxMode
o
8.4.27 GetMaxX
o 8.4.28 GetMaxY
o 8.4.29 GetModeName
o 8.4.30 GetModeRange
o 8.4.31 GetPalette
o 8.4.32 GetPaletteSize
o
8.4.33 GetPixel
o 8.4.34 GetTextSettings
o 8.4.35 GetViewSettings
o 8.4.36 GetX
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009412000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009412000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009413000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009413000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009414000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009414000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009415000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009415000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009416000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009416000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009417000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009417000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009418000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009418000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009419000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009419000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009420000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009420000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009421000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009421000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009422000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009422000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009423000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009423000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009424000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009424000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009425000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009425000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009426000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009426000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009427000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009427000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009428000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009428000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009429000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009429000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009430000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009430000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009431000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009431000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009432000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009432000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009433000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009433000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009434000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009434000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009435000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009435000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009436000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009436000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009436000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009435000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009434000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009433000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009432000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009431000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009430000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009429000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009428000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009427000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009426000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009425000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009424000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009423000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009422000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009421000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009420000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009419000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009418000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009417000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009416000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009415000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009414000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009413000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION0094120000000000000008/10/2019 The Graph Unit
3/46
o 8.4.37 GetY
o 8.4.38 GraphDefaults
o 8.4.39 GraphErrorMsg
o
8.4.40 GraphResult
o 8.4.41 ImageSize
o 8.4.42 InitGraph
o 8.4.43 InstallUserDriver
o 8.4.44 InstallUserFont
o 8.4.45 Line
o
8.4.46 LineRel
o 8.4.47 LineTo
o 8.4.48 MoveRel
o 8.4.49 MoveTo
o 8.4.50 OutText
o 8.4.51 OutTextXY
o
8.4.52 PieSlice
o 8.4.53 PutImage
o 8.4.54 PutPixel
o 8.4.55 Rectangle
o 8.4.56 RegisterBGIDriver
o 8.4.57 RegisterBGIFont
o
8.4.58 RestoreCRTMode
o 8.4.59 Sector
o 8.4.60 SetActivePage
o 8.4.61 SetAllPallette
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009437000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009437000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009438000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009438000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009439000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009439000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009440000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009440000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009441000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009441000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009442000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009442000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009443000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009443000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009444000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009444000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009445000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009445000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009446000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009446000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009447000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009447000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009448000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009448000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009449000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009449000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009450000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009450000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009451000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009451000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009452000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009452000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009453000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009453000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009454000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009454000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009455000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009455000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009456000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009456000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009457000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009457000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009458000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009458000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009459000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009459000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009460000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009460000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009461000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009461000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009461000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009460000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009459000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009458000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009457000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009456000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009455000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009454000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009453000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009452000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009451000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009450000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009449000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009448000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009447000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009446000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009445000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009444000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009443000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009442000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009441000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009440000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009439000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009438000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION0094370000000000000008/10/2019 The Graph Unit
4/46
o 8.4.62 SetAspectRatio
o 8.4.63 SetBkColor
o 8.4.64 SetColor
o
8.4.65 SetFillPattern
o 8.4.66 SetFillStyle
o 8.4.67 SetGraphBufSize
o 8.4.68 SetGraphMode
o 8.4.69 SetLineStyle
o 8.4.70 SetPalette
o
8.4.71 SetRGBPalette
o 8.4.72 SetTextJustify
o 8.4.73 SetTextStyle
o 8.4.74 SetUserCharSize
o 8.4.75 SetViewPort
o 8.4.76 SetVisualPage
o
8.4.77 SetWriteMode
o 8.4.78 TextHeight
o 8.4.79 TextWidth
8.5 Target specific issues
o 8.5.1 DOS
o 8.5.2 WINDOWS
o
8.5.3 LINUX
8. The GRAPH unit.
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009462000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009462000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009463000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009463000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009464000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009464000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009465000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009465000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009466000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009466000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009467000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009467000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009468000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009468000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009469000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009469000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009470000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009470000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009471000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009471000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009472000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009472000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009473000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009473000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009474000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009474000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009475000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009475000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009476000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009476000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009477000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009477000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009478000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009478000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009479000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009479000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00950000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00950000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00951000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00951000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00952000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00952000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00953000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00953000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00953000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00952000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00951000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION00950000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009479000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009478000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009477000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009476000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009475000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009474000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009473000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009472000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009471000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009470000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009469000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009468000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009467000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009466000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009465000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009464000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION009463000000000000000http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#SECTION0094620000000000000008/10/2019 The Graph Unit
5/46
graphex This document describes the GRAPH unit for Free Pascal, for all platforms. The unit was first
written for DOSby Florian klmpfl, but was later completely rewritten by Carl-Eric Codere to be
completely portable.
This chapter is divided in 4 sections.
The first section gives an introduction to the graph unit.
The second section lists the pre-defined constants, types and variables.
The second section describes the functions which appear in the interface part of
the GRAPHunit.
The last part describes some system-specific issues.
8.1 Introduction
8.1.1 Requirements
The unit Graph exports functions and procedures for graphical output. It requires at least a VGA-
compatible Card or a VGA-Card with software-driver (min. 512Kbvideo memory).
8.1.2 A word about mode selection
The graph unit was implemented for compatibility with the old graph unit. For this reason, the mode
constants as they were defined in the graph unit are retained.
However, since
1.
Video cards have evolved very much
2.
Free Pascal runs on multiple platforms
it was decided to implement new mode and graphic driver constants, which are more independent of
the specific platform the program runs on.
In this section we give a short explanation of the new mode system. the following drivers were defined:
D1bit = 11;
D2bit = 12;
D4bit = 13;
D6bit = 14; { 64 colors Half-brite mode - Amiga }
D8bit = 15;
8/10/2019 The Graph Unit
6/46
D12bit = 16; { 4096 color modes HAM mode - Amiga }
D15bit = 17;
D16bit = 18;
D24bit = 19; { not yet supported }
D32bit = 20; { not yet supported }
D64bit = 21; { not yet supported }
lowNewDriver = 11;
highNewDriver = 21;
Each of these drivers specifies a desired color-depth.
The following modes have been defined:
detectMode = 30000;
m320x200 = 30001;
m320x256 = 30002; { amiga resolution (PAL) }
m320x400 = 30003; { amiga/atari resolution }
m512x384 = 30004; { mac resolution }
m640x200 = 30005; { vga resolution }
m640x256 = 30006; { amiga resolution (PAL) }
m640x350 = 30007; { vga resolution }
m640x400 = 30008;
m640x480 = 30009;
m800x600 = 30010;
m832x624 = 30011; { mac resolution }
m1024x768 = 30012;
m1280x1024 = 30013;
8/10/2019 The Graph Unit
7/46
m1600x1200 = 30014;
m2048x1536 = 30015;
lowNewMode = 30001;
highNewMode = 30015;
These modes start at 30000 because Borland specified that the mode number should be ascending with
increasing X resolution, and the new constants shouldn't interfere with the old ones.
The above constants can be used to set a certain color depth and resultion, as demonstrated in the
following example:
2#2
If other modes than the ones above are supported by the graphics card, you will not be able to select
them with this mechanism.
For this reason, there is also a 'dynamic' mode number, which is assigned at run-time. This number
increases with increasing X resolution. It can be queried with the getmoderange call. This call will return
the range of modes which are valid for a certain graphics driver. The numbers are guaranteed to be
consecutive, and can be used to search for a certain resolution, as in the following example:
3#3
Thus, the getmoderange function can be used to detect all available modes and drivers, as in the
following example:
4#4
8.2 Constants, Types and Variables
8.2.1 Types
ArcCoordsType = record
X,Y,Xstart,Ystart,Xend,Yend : Integer;
end;
FillPatternType = Array [1..8] of Byte;
FillSettingsType = Record
Pattern,Color : Word
8/10/2019 The Graph Unit
8/46
end;
LineSettingsType = Record
LineStyle,Pattern, Width : Word;
end;
PaletteType = Record
Size : Byte;
Colors : array[0..MAxColor] of shortint;
end;
PointType = Record
X,Y : Integer;
end;
TextSettingsType = Record
Font,Direction, CharSize, Horiz, Vert : Word
end;
ViewPortType = Record
X1,Y1,X2,Y2 : Integer;
Clip : Boolean
end;
8.3 Function list by category
What follows is a listing of the available functions, grouped by category. For each function there is a
reference to the page where you can find the function.
8.3.1 Initialization
Initialization of the graphics screen.ClearDeviceEmpty the graphics screen]
CloseGraphFinish drawing session, return to text mode
DetectGraphDetect graphical modes
GetAspectRatioGet aspect ratio of screen
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:CloseGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:CloseGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DetectGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DetectGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DetectGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:CloseGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevice8/10/2019 The Graph Unit
9/46
GetModeRangeGet range of valid modes for current driver
GraphDefaultsSet defaults
GetDriverNameReturn name of graphical driver
GetGraphModeReturn current or last used graphics mode
GetMaxModeGet maximum mode for current driver
GetModeNameGet name of current mode
GraphErrorMsgString representation of graphical error
GraphResultResult of last drawing operation
InitGraphInitialize graphics drivers
InstallUserDriverInstall a new driver
RegisterBGIDriverRegister a new driver
RestoreCRTModeGo back to text mode
SetGraphBufSizeSet buffer size for graphical operations
SetGraphModeSet graphical mode
8.3.2 screen management
General drawing screen management functions.ClearViewPortClear the current viewport]
GetImageCopy image from screen to memory
GetMaxXGet maximum X coordinate
GetMaxYGet maximum Y coordinate
GetXGet current X position
GetYGet current Y position
ImageSizeGet size of selected image
GetViewSettingsGet current viewport settings
PutImageCopy image from memory to screen
SetActivePageSet active video page
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetModeRangehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetModeRangehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GraphDefaultshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GraphDefaultshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphErrorMsghttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphErrorMsghttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphResulthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphResulthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:RestoreCRTModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:RestoreCRTModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphBufSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphBufSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetViewSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetViewSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetActivePagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetActivePagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetActivePagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetViewSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxXhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetGraphBufSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:RestoreCRTModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserDriverhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphResulthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GraphErrorMsghttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetGraphModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GraphDefaultshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetModeRange8/10/2019 The Graph Unit
10/46
SetAspectRatioSet aspect ratio for drawing routines
SetViewPortSet current viewport
SetVisualPageSet visual page
SetWriteModeSet write mode for screen operations
8.3.3 Color management
All functions related to color management.GetBkColorGet current background color]
GetColorGet current foreground color
GetDefaultPaletteGet default palette entries
GetMaxColorGet maximum valid color
GetPaletteSizeGet size of palette for current mode
GetPixelGet color of selected pixel
GetPaletteGet palette entry
SetAllPalletteSet all colors in palette
SetBkColorSet background color
SetColorSet foreground color
SetPaletteSet palette entry
SetRGBPaletteSet palette entry with RGB values
8.3.4 Drawing primitives
Functions for simple drawing.ArcDraw an arc]
CircleDraw a complete circle
DrawPolyDraw a polygone with N points
EllipseDraw an ellipse
GetArcCoordsGet arc coordinates
GetLineSettingsGet current line drawing settings
LineDraw line between 2 points
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetVisualPagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetVisualPagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetWriteModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetWriteModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetDefaultPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetDefaultPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAllPallettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAllPallettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetRGBPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetRGBPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DrawPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DrawPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetLineSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetLineSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Linehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Linehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Linehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetLineSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:DrawPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetRGBPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAllPallettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetDefaultPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetWriteModehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetVisualPagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatio8/10/2019 The Graph Unit
11/46
LineRelDraw line relative to current position
LineToDraw line from current position to absolute position
MoveRelMove cursor relative to current position
MoveToMove cursor to absolute position
PieSliceDraw a pie slice
PutPixelDraw 1 pixel
RectangleDraw a non-filled rectangle
SectorDraw a sector
SetLineStyleSet current line drawing style
8.3.5 Filled drawings
Functions for drawing filled regions.Bar3DDraw a filled 3D-style bar]
BarDraw a filled rectangle
FloodFillFill starting from coordinate
FillEllipseDraw a filled ellipse
FillPolyDraw a filled polygone
GetFillPatternGet current fill pattern
GetFillSettingsGet current fill settings
SetFillPatternSet current fill pattern
SetFillStyleSet current fill settings
8.3.6 Text and font handling
Functions to set texts on the screen.GetTextSettingsGet current text settings]
InstallUserFontInstall a new font
OutTextWrite text at current cursor position
OutTextXYWrite text at coordinates X,Y
RegisterBGIFontRegister a new font
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineRelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineRelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveRelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveRelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FloodFillhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FloodFillhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetTextSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetTextSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetTextSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTexthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTexthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTextXYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTextXYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:RegisterBGIFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTextXYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:OutTexthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:InstallUserFonthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetTextSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillSettingshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillPolyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FloodFillhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutPixelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:MoveRelhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineTohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:LineRel8/10/2019 The Graph Unit
12/46
SetTextJustifySet text justification
SetTextStyleSet text style
SetUserCharSizeSet text size
TextHeightCalculate height of text
TextWidthCalculate width of text
8.4 Functions and procedures
8.4.1 Arc
Declaration
Procedure Arc (X,Y : Integer; start,stop, radius : Word);
Description
Arc draws part of a circle with center at (X,Y), radius radius, starting from angle start, stopping at
angle stop. These angles are measured counterclockwise.
Errors
None.
See also
Circle,EllipseGetArcCoords,PieSlice,Sector
8.4.2 Bar
Declaration
Procedure Bar (X1,Y1,X2,Y2 : Integer);
Description
Draws a rectangle with corners at (X1,Y1) and (X2,Y2) and fills it with the current color and fill-style.
Errors
None.
See also
Bar3D,Rectangle
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetUserCharSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetUserCharSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextHeighthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextHeighthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextWidthhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextWidthhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar3Dhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextWidthhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:TextHeighthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetUserCharSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustify8/10/2019 The Graph Unit
13/46
8.4.3 Bar3D
Declaration
Procedure Bar3D (X1,Y1,X2,Y2 : Integer; depth : Word; Top : Boolean);
Description
Draws a 3-dimensional Bar with corners at (X1,Y1) and (X2,Y2) and fills it with the current color and fill-
style. Depth specifies the number of pixels used to show the depth of the bar. If Top is true; then a 3-
dimensional top is drawn.
Errors
None.
See also
Bar,Rectangle
8.4.4 Circle
Declaration
Procedure Circle (X,Y : Integer; Radius : Word);
Description
Circle draws part of a circle with center at (X,Y), radius radius.
Errors
None.
See also
Ellipse,ArcGetArcCoords,PieSlice,Sector
8.4.5 ClearDevice
Declaration
Procedure ClearDevice ;
Description
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar8/10/2019 The Graph Unit
14/46
Clears the graphical screen (with the current background color), and sets the pointer at (0,0)
Errors
None.
See also
ClearViewPort,SetBkColor
8.4.6 ClearViewPort
Declaration
Procedure ClearViewPort ;
Description
Clears the current viewport. The current background color is used as filling color. The pointer is set
at (0,0)
Errors
None.
See also
ClearDevice,SetViewPort,SetBkColor
8.4.7 CloseGraph
Declaration
Procedure CloseGraph ;
Description
Closes the graphical system, and restores the screen modus which was active before the graphical
modus was activated.
Errors
None.
See also
InitGraph
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearDevicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:ClearViewPort8/10/2019 The Graph Unit
15/46
8.4.8 DetectGraph
Declaration
Procedure DetectGraph (Var Driver, Modus : Integer);
Description
Checks the hardware in the PC and determines the driver and screen-modus to be used. These are
returned in Driver and Modus, and can be fed to InitGraph. See the InitGraph for a list of drivers and
modi.
Errors
None.
See also
InitGraph
8.4.9 DrawPoly
Declaration
Procedure DrawPoly (NumberOfPoints : Word; Var PolyPoints;
Description
Draws a polygone with NumberOfPoints corner points, using the current color and line-style. PolyPoints
is an array of type PointType.
Errors
None.
See also
Bar,seepBar3D,Rectangle
8.4.10 Ellipse
Declaration
Procedure Ellipse (X,Y : Integer; Start,Stop,XRadius,YRadius : Word);
Description
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraph8/10/2019 The Graph Unit
16/46
Ellipse draws part of an ellipse with center at (X,Y). XRadius and Yradius are the horizontal and vertical
radii of the ellipse. Start and Stop are the starting and stopping angles of the part of the ellipse. They are
measured counterclockwise from the X-axis.
Errors
None.
See also
ArcCircle,FillEllipse
8.4.11 FillEllipse
Declaration
Procedure FillEllipse (X,Y : Integer; Xradius,YRadius: Word);
Description
Ellipse draws an ellipse with center at (X,Y). XRadius and Yradius are the horizontal and vertical radii of
the ellipse. The ellipse is filled with the current color and fill-style.
Errors
None.
See also
ArcCircle,GetArcCoords,PieSlice,Sector
8.4.12 FillPoly
Declaration
Procedure FillPoly (NumberOfPoints : Word; Var PolyPoints);
Description
Draws a polygone with NumberOfPoints corner points and fills it using the current color and line-style.
PolyPoints is an array of type PointType.
Errors
None.
See also
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Sectorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PieSlicehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetArcCoordshttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:FillEllipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Circlehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Arc8/10/2019 The Graph Unit
17/46
Bar,seepBar3D,Rectangle
8.4.13 FloodFill
Declaration
Procedure FloodFill (X,Y : Integer; BorderColor : Word);
Description
Fills the area containing the point (X,Y), bounded by the color BorderColor.
Errors
None
See also
SetColor,SetBkColor
8.4.14 GetArcCoords
Declaration
Procedure GetArcCoords (Var ArcCoords : ArcCoordsType);
Description
GetArcCoords returns the coordinates of the latest Arc or Ellipse call.
Errors
None.
See also
Arc,Ellipse
8.4.15 GetAspectRatio
Declaration
Procedure GetAspectRatio (Var Xasp,Yasp : Word);
Description
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Barhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Ellipsehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Archttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Rectanglehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:Bar8/10/2019 The Graph Unit
18/46
GetAspectRatio determines the effective resolution of the screen. The aspect ration can the be
calculated as Xasp/Yasp.
Errors
None.
See also
InitGraph,SetAspectRatio
8.4.16 GetBkColor
Declaration
Function GetBkColor : Word;
Description
GetBkColor returns the current background color (the palette entry).
Errors
None.
See also
GetColor,SetBkColor
8.4.17 GetColor
Declaration
Function GetColor : Word;
Description
GetColor returns the current drawing color (the palette entry).
Errors
None.
See also
GetColor,SetBkColor
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetAspectRatiohttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraph8/10/2019 The Graph Unit
19/46
8.4.18 GetDefaultPalette
Declaration
Procedure GetDefaultPalette (Var Palette : PaletteType);
Description
Returns the current palette in Palette.
Errors
None.
See also
GetColor,GetBkColor
8.4.19 GetDriverName
Declaration
Function GetDriverName : String;
Description
GetDriverName returns a string containing the name of the current driver.
Errors
None.
See also
GetModeName,InitGraph
8.4.20 GetFillPattern
Declaration
Procedure GetFillPattern (Var FillPattern : FillPatternType);
Description
GetFillPattern returns an array with the current fill-pattern in FillPattern
Errors
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetModeNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetBkColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetColor8/10/2019 The Graph Unit
20/46
None
See also
SetFillPattern
8.4.21 GetFillSettings
Declaration
Procedure GetFillSettings (Var FillInfo : FillSettingsType);
Description
GetFillSettings returns the current fill-settings in FillInfo
Errors
None.
See also
SetFillPattern
8.4.22 GetGraphMode
Declaration
Function GetGraphMode : Integer;
Description
GetGraphMode returns the current graphical modus
Errors
None.
See also
InitGraph
8.4.23 GetImage
Declaration
Procedure GetImage (X1,Y1,X2,Y2 : Integer, Var Bitmap;
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPatternhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetFillPattern8/10/2019 The Graph Unit
21/46
Description
GetImage Places a copy of the screen area (X1,Y1) to X2,Y2 in BitMap
Errors
Bitmap must have enough room to contain the image.
See also
ImageSize,PutImage
8.4.24 GetLineSettings
Declaration
Procedure GetLineSettings (Var LineInfo : LineSettingsType);
Description
GetLineSettings returns the current Line settings in LineInfo
Errors
None.
See also
SetLineStyle
8.4.25 GetMaxColor
Declaration
Function GetMaxColor : Word;
Description
GetMaxColor returns the maximum color-number which can be set with SetColor. Contrary to , this
color isn't always guaranteed to be white (for instance in 256+ color modes).
Errors
None.
See also
SetColor,GetPaletteSize
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetColorhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetLineStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:PutImagehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:ImageSize8/10/2019 The Graph Unit
22/46
8.4.26 GetMaxMode
Declaration
Function GetMaxMode : Word;
Description
GetMaxMode returns the highest modus for the current driver.
Errors
None.
See also
InitGraph
8.4.27 GetMaxX
Declaration
Function GetMaxX : Word;
Description
GetMaxX returns the maximum horizontal screen length
Errors
None.
See also
GetMaxY
8.4.28 GetMaxY
Declaration
Function GetMaxY : Word;
Description
GetMaxY returns the maximum number of screen lines
Errors
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraph8/10/2019 The Graph Unit
23/46
None.
See also
GetMaxY
8.4.29 GetModeName
Declaration
Function GetModeName (Var modus : Integer) : String;
Description
Returns a string with the name of modus Modus
Errors
None.
See also
GetDriverName,InitGraph
8.4.30 GetModeRange
Declaration
Procedure GetModeRange (Driver : Integer;
LoModus, HiModus: Integer);
Description
GetModeRange returns the Lowest and Highest modus of the currently installed driver. If no modes are
supported for this driver, HiModus will be -1.
Errors
None.
See also
InitGraph
8.4.31 GetPalette
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxYhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:InitGraphhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetDriverNamehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetMaxY8/10/2019 The Graph Unit
24/46
Declaration
Procedure GetPalette (Var Palette : PaletteType);
Description
GetPalette returns in Palette the current palette.
Errors
None.
See also
GetPaletteSize,SetPalette
8.4.32 GetPaletteSize
Declaration
Function GetPaletteSize : Word;
Description
GetPaletteSize returns the maximum number of entries in the current palette.
Errors
None.
See also
GetPalette,SetPalette
8.4.33 GetPixel
Declaration
Function GetPixel (X,Y : Integer) : Word;
Description
GetPixel returns the color of the point at (X,Y)
Errors
None.
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSizehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:GetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetPalettehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#fu:GetPaletteSize8/10/2019 The Graph Unit
25/46
See also
8.4.34 GetTextSettings
Declaration
Procedure GetTextSettings (Var TextInfo : TextSettingsType);
Description
GetTextSettings returns the current text style settings : The font, direction, size and placement as set
with SetTextStyle and SetTextJustify
Errors
None.
See also
SetTextStyle,SetTextJustify
8.4.35 GetViewSettings
Declaration
Procedure GetViewSettings (Var ViewPort : ViewPortType);
Description
GetViewSettings returns the current viewport and clipping settings in ViewPort.
Errors
None.
See also
SetViewPort
8.4.36 GetX
Declaration
Function GetX : Integer;
Description
http://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStylehttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetViewPorthttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextJustifyhttp://www.math.uni-leipzig.de/pool/tuts/FreePascal/units/node9.html#pro:SetTextStyle8/10/2019 The Graph Unit
26/46
GetX returns the X-coordinate of the current position of the graphical pointer
Errors
None.
See also
GetY
8.4.37 GetY
Declaration
Function GetY : Integer;
Description
GetY returns the Y-coordinate of the current position of the graphical pointer
Errors
None.
See also
GetX
8.4.38 GraphDefaults
Declaration
Procedure GraphDefaults ;
Description
GraphDefaults resets all settings for viewport, palette, foreground and background pattern, line-style
and pattern, filling style, filling color and pattern, font, text-placement and text size.
Errors
None.
See also
SetViewPort,SetFillStyle,SetColor,SetBkColor,SetLineStyle
http: