unit image

A unit to load a variety of image formats

author: Steven Don, Tomasz Biela (Tebe)


GTIA

Constants:

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

Register Variables:

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

Global Variables:

name:type:description:
IMGErrorbyte=0 if operation successfull

Interface:

name:description:
LoadBMP

function LoadBMP(const FileName: TString): Boolean;


This loads a BMP File (4bit, 8bit)
    LoadGIF

    function LoadGIF(const FileName: TString): Boolean;


    This loads a GIF File (GIF87a)
      LoadMIC

      function LoadMIC(const FileName: TString; Location: pointer): Boolean;


      This loads a MIC File to the specified location
        LoadPCX

        function LoadPCX(const FileName: TString): Boolean;


        This loads a PCX File (8bit)
          LoadPIC

          function LoadPIC(const FileName: TString; Location: pointer): Boolean;


          This loads a PIC File to the specified location
            NextByte

            function NextByte : Byte;


            This function reads the next byte from the PIC/PCX file