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.

Initialization

Initialization of the graphics screen.

Name Description Page
____________________________________________________________________________

ClearDevice
Empty the graphics screen 205
CloseGraph
Finish drawing session, return to text mode 205
DetectGraph
Detect graphical modes 206
GetAspectRatio
Get aspect ratio of screen 208
GetModeRange
Get range of valid modes for current driver 211
GraphDefaults
Set defaults 214
GetDriverName
Return name of graphical driver 209
GetGraphMode
Return current or last used graphics mode 209
GetMaxMode
Get maximum mode for current driver 210
GetModeName
Get name of current mode 211
GraphErrorMsg
String representation of graphical error 214
GraphResult
Result of last drawing operation 214
InitGraph
Initialize graphics drivers 215
InstallUserDriver
Install a new driver 216
RegisterBGIDriver
Register a new driver 220
RestoreCRTMode
Go back to text mode 220
SetGraphBufSize
Set buffer size for graphical operations 223
SetGraphMode
Set graphical mode 223

screen management

General drawing screen management functions.

Name Description Page
____________________________________________________________________________

ClearViewPort
Clear the current viewport 205
GetImage
Copy image from screen to memory 210
GetMaxX
Get maximum X coordinate 211
GetMaxY
Get maximum Y coordinate 211
GetX
Get current X position 213
GetY
Get current Y position 213
ImageSize
Get size of selected image 215
GetViewSettings
Get current viewport settings 213
PutImage
Copy image from memory to screen 219
SetActivePage
Set active video page 221
SetAspectRatio
Set aspect ratio for drawing routines 221
SetViewPort
Set current viewport 227
SetVisualPage
Set visual page 228
SetWriteMode
Set write mode for screen operations 228

Color management

All functions related to color management.

Name Description Page
____________________________________________________________________________

GetBkColor
Get current background color 208
GetColor
Get current foreground color 208
GetDefaultPalette
Get default palette entries 208
GetMaxColor
Get maximum valid color 210
GetPaletteSize
Get size of palette for current mode 212
GetPixel
Get color of selected pixel 212
GetPalette
Get palette entry 212
SetAllPallette
Set all colors in palette 221
SetBkColor
Set background color 222
SetColor
Set foreground color 222
SetPalette
Set palette entry 224
SetRGBPalette
Set palette entry with RGB values 225

Drawing primitives

Functions for simple drawing.

Name Description Page
____________________________________________________________________________

Arc
Draw an arc 204
Circle
Draw a complete circle 205
DrawPoly
Draw a polygone with N points 206
Ellipse
Draw an ellipse 206
GetArcCoords
Get arc coordinates 207
GetLineSettings
Get current line drawing settings 210
Line
Draw line between 2 points 216
LineRel
Draw line relative to current position 217
LineTo
Draw line from current position to absolute position 217
MoveRel
Move cursor relative to current position 217
MoveTo
Move cursor to absolute position 218
PieSlice
Draw a pie slice 218
PutPixel
Draw 1 pixel 219
Rectangle
Draw a non-filled rectangle 219
Sector
Draw a sector 220
SetLineStyle
Set current line drawing style 224

Filled drawings

Functions for drawing filled regions.

Name Description Page
____________________________________________________________________________

Bar3D
Draw a filled 3D-style bar 204
Bar
Draw a filled rectangle 204
FloodFill
Fill starting from coordinate 207
FillEllipse
Draw a filled ellipse 206
FillPoly
Draw a filled polygone 207
GetFillPattern
Get current fill pattern 209
GetFillSettings
Get current fill settings 209
SetFillPattern
Set current fill pattern 222
SetFillStyle
Set current fill settings 222

Text and font handling

Functions to set texts on the screen.

Name Description Page
____________________________________________________________________________

GetTextSettings
Get current text settings 213
InstallUserFont
Install a new font 216
OutText
Write text at current cursor position 218
OutTextXY
Write text at coordinates X,Y 218
RegisterBGIFont
Register a new font 220
SetTextJustify
Set text justification 225
SetTextStyle
Set text style 225
SetUserCharSize
Set text size 227
TextHeight
Calculate height of text 228
TextWidth
Calculate width of text 229