Borland Graphics Interface

Borland Graphics Interface
DeveloperBorland
Written inC++
Operating systemMS-DOS
Typelibrary or framework

Borland Graphics Interface, also known as BGI, is a graphics library that was bundled with several Pascal and C++ compilers for MS-DOS sold by Borland. It first shipped with version 4 of Turbo Pascal in 1987. BGI was also used to provide graphics for many other Borland products including the Quattro Pro spreadsheet. BGI was designed for 2D presentation graphics.

The library loaded graphic drivers (*.BGI) and vector fonts (*.CHR) from disk in order to provide device independent graphics support. It was possible for the programmer to embed the graphic driver into the executable file by linking the graphic driver as object code with the aid of a utility provided by the compiler (bgiobj.exe). There were graphic drivers for common graphic adapters and printers of that time, such as CGA, EGA, VGA, Hercules, AT&T 400, MCGA and 3270 PC. There also were BGI drivers for some kinds of plotters.

The last Borland's C++ IDE for MS-DOS is Borland C++ 3.1 (1992). The last C++ environment which supports BGI is Borland C++ 5.02 (1997), which works under Windows but can compile DOS programs. BGI was accessible in C/C++ with graphics.lib / graphics.h, and in Pascal via the graph unit.