Borland Graphics Interface

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Moved "Bitmap images" section to "BGI image" article)
(Identification)
Line 7: Line 7:
  
 
== Identification ==
 
== Identification ==
Files begin with <code>'P' 'K' 0x08 0x08 </code> -- this is shared with the [[CHR_(Borland_font)|CHR]] font files used by BGI. The four-byte signature is followed by either <code>'BGI Device Driver'</code> or <code>'SVGA 256 Colour BGI Device Driver'</code>.
+
Most BGI files begin with a 4-byte signature: <code>"pk" 0x08 0x08</code>. Note the similarity to [[CHR (Borland font)|CHR]] font files used by BGI.
 +
 
 +
Newer versions have an 8-byte signature: <code>"FBGD" 0x08 0x08 0x08 0x08</code>.
 +
 
 +
Following the signature is some text that names the driver, and gives copyright information. It usually begins with "<code>BGI Device Driver</code>" or "<code>SVGA 256 Colour BGI Device Driver</code>".
  
 
== Main Entry ==
 
== Main Entry ==

Revision as of 15:03, 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

Most BGI files begin with a 4-byte signature: "pk" 0x08 0x08. Note the similarity to CHR font files used by BGI.

Newer versions have an 8-byte signature: "FBGD" 0x08 0x08 0x08 0x08.

Following the signature is some text that names the driver, and gives copyright information. It usually begins with "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