xpm2bmap file.xpm converts file.xpm in XPM image format (X PixMap) to file.bmap in following format: n1 n2 m_1_1 m_1_2 ... m_1_n2 m_2_1 m_2_2 ... m_2_n2 ... m_n1_1 m_n1_2 ... m_n1_n2 where m_i_j are pixel gray colors (between 0 and 255)