Borland Graphics Interface

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Executables |extensions={{ext|bgi}} }} The '''Borland Graphics Interface''' is a graphics library used by DOS programs, which inclu...")
 
(Moved "Bitmap images" section to "BGI image" article)
Line 12: Line 12:
 
The first 160 bytes of the driver file are a header. This is followed by the driver code segment. Far calls will be made to this address with SI containing the function number to execute.
 
The first 160 bytes of the driver file are a header. This is followed by the driver code segment. Far calls will be made to this address with SI containing the function number to execute.
  
== Bitmap images ==
+
== Related formats ==
BGI contains <code>getimage()</code> and <code>putimage()</code> functions to save and load images. The images thus saved have a 4-byte header (two little-endian words giving the image's width and height) followed by the image data, in a form specific to the driver used. A 16-colour VGA image will contain four monochrome bitmaps for the four planes. These images, with a .ICN extension, are used as icons by [[RIPscrip_Icon|RIPscrip 1.x]] and Counterpoint.
+
* [[BGI image]]
 +
* [[CHR (Borland font)]]
  
 
== Specifications ==
 
== Specifications ==

Revision as of 14:53, 24 March 2016

File Format
Name Borland Graphics Interface
Ontology
Extension(s) .bgi

The Borland Graphics Interface is a graphics library used by DOS programs, which includes the ability to use loadable drivers. These drivers have the file extension .BGI.

Contents

Identification

Files begin with 'P' 'K' 0x08 0x08 -- this is shared with the CHR font files used by BGI. The four-byte signature is followed by either 'BGI Device Driver' or 'SVGA 256 Colour BGI Device Driver'.

Main Entry

The first 160 bytes of the driver file are a header. This is followed by the driver code segment. Far calls will be made to this address with SI containing the function number to execute.

Related formats

Specifications

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox