# unit image

### A unit to load a variety of image formats for ANTIC/GTIA

author: Steven Don, Tomasz Biela (Tebe)

GTIA

## Constants:

name: | value: | description:
--- | --- | ---
FileNotFound | $01 |
UnsupportedFormat | $02 |
TooLarge | $03 |

## Register Variables:

name: | address: | type: | description:
--- | --- | --- | ---
Buffer | $0400 | array [0..0] of byte |

## Global Variables:

name: | type: | description:
--- | --- | ---
IMGError | byte | =0 if operation successfull

## Interface:

name: | description:
--- | ---
NextByte | #### function NextByte : Byte; This function reads the next byte from the PIC/PCX file
LoadPIC | #### function LoadPIC(const FileName: TString; Location: pointer): Boolean; This loads a PIC File to the specified location
LoadMIC | #### function LoadMIC(const FileName: TString; Location: pointer): Boolean; This loads a MIC File to the specified location
LoadBMP | #### function LoadBMP(const FileName: TString): Boolean; This loads a BMP File (4bit, 8bit)
LoadPCX | #### function LoadPCX(const FileName: TString): Boolean; This loads a PCX File (8bit)
LoadGIF | #### function LoadGIF(const FileName: TString): Boolean; This loads a GIF File (GIF87a)