Many graphics formats are described in: "Programming for Graphics Files in C and C++" by John Levine This book have just appeared. It contains many ready-to-use routines for reading/writing the graphics (BMP format is also available). Andrey