Microsoft Windows Bitmap Code Fragments

Several code fragments for the Microsoft Windows bitmap format are available:

bmp_code.txt

bmp_code.txt contains examples of Windows BMP and OS2 BMP header structures, how to read, write, display, decode, and encode a BMP file, and how to use all the functions in the BMP library.

bmptypes.h

bmptypes.h is a file of datatypes used in bitmaps.

endian.c

endian.c contains functions that read and write basic integer types from a little-endian file.

endian.h

endian.h is the header for endian.c.

readbmp.c

readbmp.c contains mid-level functions for reading bitmap structures and high-level functions that read bitmap files.

readbmp.h

readbmp.h is the header for readbmp.c.

test.c

test.c is a test program for reading bitmap files; it accepts an input file on the command line.


Copyright © 1996 O'Reilly & Associates, Inc. All Rights Reserved.