The X version 11 bitmap file format is:
#define name_width width
#define name_height height
#define name_x_hot x
#define name_y_hot y
static unsigned char name_bits[] = { 0xNN,... }
The lines for the variables ending with _x_hot and _y_hot suffixes are optional because they are present only if a hotspot has been defined for this bitmap. The lines for the other variables are required. The word ``unsigned'' is optional; that is, the type of the _bits array can be ``char'' or ``unsigned char''. The _bits array must be large enough to contain the size bitmap. The bitmap unit is eight.
To read a bitmap from a file and store it in a pixmap, use XReadBitmapFile().
To read a bitmap from a file and return it as data, use XReadBitmapFileData().
To write out a bitmap from a pixmap to a file, use XWriteBitmapFile().
To create a pixmap and then store bitmap-format data into it, use XCreatePixmapFromBitmapData().
To include a bitmap written out by XWriteBitmapFile() in a program directly, as opposed to reading it in every time at run time, use XCreateBitmapFromData().