Borland C++ reference
Borland C++ 3.1 ›

<graphics.h>

_graphfreememUser hook into graphics memory deallocation.
_graphgetmemUser hook into graphics memory allocation.
arcDraws an arc.
barDraws a two-dimensional bar.
bar3dDraws a three-dimensional bar.
circleDraws a circle of the given radius with its center at ix,y).
cleardeviceClears the graphics screen.
clearviewportClears the current viewport.
closegraphShuts down the graphics system.
detectgraphDetermines graphics driver and graphics mode to use by checking the hardware.
drawpolyDraws the outline of a polygon.
fillellipseDraws and fills an ellipse.
fillpolyDraws and fills a polygon.
floodfillFlood-fills a bounded region.
getarccoordsGets coordinates of the last call to arc.
getaspectratioRetrieves the current graphics mode's aspect ratio.
getbkcolorReturns the current background color.
getcolorReturns the current drawing color.
getdefaultpaletteReturns the palette definition structure.
getdrivernameReturns a pointer to a string containing the name of the current graphics driver.
getfillpatternCopies a user-defined fill pattern into memory.
getfillsettingsGets information about current fill pattern and color.
getgraphmodeReturns the current graphics mode.
getimageSaves a bit image of the specified region into memory.
getlinesettingsGets the current line style, pattern, and thickness.
getmaxcolorReturns maximum color value that can be passed to the setcolor function.
getmaxmodeReturns the maximum mode number for the current driver.
getmaxxReturns maximum x screen coordinate.
getmaxyReturns maximum y screen coordinate.
getmodenameReturns a pointer to a string containing the name of a specified graphics mode.
getmoderangeGets the range of modes for a given graphics driver.
getpaletteGets information about the current palette.
getpalettesizeReturns size of palette color lookup table.
getpixelGets the color of a specified pixel.
gettextsettingsGets information about the current graphics text font.
getviewsettingsGets information about the current viewport.
getxReturns the current graphics position's x-coordinate.
getyReturns the current graphics position's y-coordinate.
graphdefaultsResets all graphics settings to their defaults.
grapherrormsgReturns a pointer to an error message string.
graphresultReturns an error code for the last unsuccessful graphics operation.
imagesizeReturns the number of bytes required to store a bit image.
initgraphInitializes the graphics system.
installuserdriverInstalls a vendor-added device driver to the BGI device driver table.
installuserfontLoads a font file (.CHR) that is not built into the BGI system.
lineDraws a line between two specified points.
linerelDraws a line a relative distance from the current position (CP).
linetoDraws a line from the current position (CP) to {x,y).
moverelMoves the current position (CP) a relative distance.
movetoMoves the current position (CP) to {x,y).
outtextDisplays a string in the viewport.
outtextxyDisplays a string at a specified location.
piesliceDraws and fills in pie slice.
putimageOutputs a bit image to screen.
putpixelPlots a pixel at a specified point.
rectangleDraws a rectangle.
registerbgidriverRegisters a user-loaded or linked-in graphics driver code with the graphics system.
registerbgifontRegisters linked-in stroked font code.
restorecrtmodeRestores the screen mode to its pre-initgraph setting.
sectorDraws and fills an elliptical pie slice.
setactivepageSets active page for graphics output.
setallpaletteChanges all palette colors as specified.
setaspectratioChanges the default aspect ratio correction factor.
setbkcolorSets the current background color using the palette.
setcolorSets the current drawing color using the palette.
setfillpatternSelects a user-defined fill pattern.
setfillstyleSets the fill pattern and color.
setgraphbufsizeChanges the size of the internal graphics buffer.
setgraphmodeSets the system to graphics mode and clears the screen.
setlinestyleSets the current line width and style.
setpaletteChanges one palette color.
setrgbpaletteAllows user to define colors for the IBM 8514.
settextjustifySets text justification for graphics functions.
settextstyleSets the current text characteristics for graphics output.
setusercharsizeVaries character width and height for stroked fonts.
setviewportSets the current viewport for graphics output.
setvisualpageSets the visual graphics page number.
setwritemodeSets the writing mode for line drawing in graphics mode.
textheightReturns the height of a string in pixels.
textwidthReturns the width of a string in pixels.