[next] [prev] [prev-tail] [tail] [up]

## Chapter 8
The GRAPH unit.

This document describes the GRAPH unit for Free Pascal, for all platforms. The unit was first written for D O S by Florian klämpfl, 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 GRAPH unit.
- The last part describes some system-specific issues.

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

[next] [prev] [prev-tail] [front] [up]