Graphics File Formats

[.BMP loading] [.GIF loading] [.PCX loading] [Pascal image unit]

This page contains source code for handling some of the many graphic file formats out there. If you want to find a lot of informations on file formats, I recommend Wotsit's file format site.

Displaying .BMP files

Source code to load and display a .BMP image file. This will display any uncompressed .BMP file with 256 colours and a resolution of 320x200 or less.

To download the Pascal source code (2k), click here.
To download the C source code (2k), click here.

Displaying .GIF files

Source code to load and display a Compuserve .GIF image file. This will display non-interlaced GIF87a or GIF89a files with 256 colours and a resolution of 320x200 or less.

To download the Pascal source code (3k), click here.
To download the C/C++ source code (3k), click here.

Displaying .PCX files

Source code to load and display a .PCX image file. This will display any standard .PCX file with 256 colours and a resolution of 320x200 or less.

To download the Pascal source code (2k), click here.
To download the DJGPP/C(++) source code (1k), click here.
To download the QuickBASIC source code (1k), click here.

Image unit

Pascal unit with a uniform interface that can handle BMP, GIF and PCX images.

To download the Pascal source code (48k), click here.