XPM files are used to store X Window PixMap information to disk. They are capable of storing black-and-white, grayscale, and color images. XPM stores image data in the form of ASCII text formatted as a standard C character string array.
 
For XPM files, you can read and write the following bits per pixel: 1, 8, 24.