On Thursday 21 February 2002 12:13 pm, Juergen Spitzmueller wrote: > Angus Leeming wrote: > > Thank you, Jürgen. Then this is a bug in libxpm, I think, because we > > definitely ask for greyscale, monochrome. Is there a libxpm mailing > > list? > > Seems so. According to freshmeat, this is the archive: > > http://koala.ilog.fr/xpm-talk-hypermail/ > > I couldn't reach the site (as the homepage), though. > > Regards, > Juergen.
Ok. Having browsed the archive it appears we are doing things incorrectly. If we have an xpm file whose colours are defined so: " c red m white ", "Y c green m black ", "+ c yellow m white ", "x c black m black ", then setting the XPM_COLOR or XPM_MONO will use the colour or monochrome entries respectively. Our problem is different. In general we have pixmaps with colours so: " c red", "Y c green", "+ c yellow", "x c black", and the problem is now defining an appropriate mapping from the colour colourmap to a grayscale or monochrome one. Does anyone know anything about this stuff, whether standard mappings exist, or would even (shock horror) like to volunteer to write the routine to do this? Angus