Bmp2Gfx

The GFX library uses a GfxWindow structure to represent bitmaps. The Bmp2Gfx program converts a 8-bit greyscale .BMP files to C code. The generated code contains an initialized GfxWindow variable with the specified bitmap which can be linked into the application.

In the source code the bitmap is converted to a GfxWindow stucture which can be used by the GFX library of Aaron Ardiri. Note that the structures generated by this program should NOT be deallocated by qfree() or GfxDisposeWindow!

Usage:
Bmp2Gfx -o=outfile.c infile1 [infile2] [...]

      -o=<file>    The output file to generate
      -n=<name>    The name for the next bitmap. If not specified
                   the name of the input file will be used.
      -p=<prefix>  The name prefix for the next bitmap
Look at the makefile of ChessMate to an example of how to use this application.
Bmp2Gfx is a Win32 executable which should run on Windows 9x, Me, NT, 2000 and XP platforms.