XBM is a monochrome bitmap format in which data is stored as a C language data array. It is primarily used for the storage of cursor and icon bitmaps, for use in the X graphical user interface.
 
For XBM files, you can read and write the following bits per pixel: 1.