These routines allow you to read and write files containing pixmaps of depth 1. Unfortunately, there is no established file format for pixmaps of greater depth.