Chapter 8
The GRAPH unit.

This document describes the GRAPH unit for Free Pascal, for all platforms. The unit was first written for DOS by Florian klämpfl, but was later completely rewritten by Carl-Eric Codere to be completely portable.

This chapter is divided in 4 sections.


 8.1 Introduction
   Requirements
   A word about mode selection
 8.2 Constants, Types and Variables
   Types
 8.3 Function list by category
   Initialization
   screen management
   Color management
   Drawing primitives
   Filled drawings
   Text and font handling
 8.4 Functions and procedures
   Arc
   Bar
   Bar3D
   Circle
   ClearDevice
   ClearViewPort
   CloseGraph
   DetectGraph
   DrawPoly
   Ellipse
   FillEllipse
   FillPoly
   FloodFill
   GetArcCoords
   GetAspectRatio
   GetBkColor
   GetColor
   GetDefaultPalette
   GetDriverName
   GetFillPattern
   GetFillSettings
   GetGraphMode
   GetImage
   GetLineSettings
   GetMaxColor
   GetMaxMode
   GetMaxX
   GetMaxY
   GetModeName
   GetModeRange
   GetPalette
   GetPaletteSize
   GetPixel
   GetTextSettings
   GetViewSettings
   GetX
   GetY
   GraphDefaults
   GraphErrorMsg
   GraphResult
   ImageSize
   InitGraph
   InstallUserDriver
   InstallUserFont
   Line
   LineRel
   LineTo
   MoveRel
   MoveTo
   OutText
   OutTextXY
   PieSlice
   PutImage
   PutPixel
   Rectangle
   RegisterBGIDriver
   RegisterBGIFont
   RestoreCRTMode
   Sector
   SetActivePage
   SetAllPallette
   SetAspectRatio
   SetBkColor
   SetColor
   SetFillPattern
   SetFillStyle
   SetGraphBufSize
   SetGraphMode
   SetLineStyle
   SetPalette
   SetRGBPalette
   SetTextJustify
   SetTextStyle
   SetUserCharSize
   SetViewPort
   SetVisualPage
   SetWriteMode
   TextHeight
   TextWidth
 8.5 Target specific issues
   dos
   Windows
   linux