Public Member Functions | |
xpmImage (const char *const *d, const char *name=0) | |
xpmImage (const unsigned char *const *d, const char *name=0) | |
xpmImage (char **d, const char *name=0) | |
bool | fetch () |
Static Public Member Functions | |
bool | fetch (Image &, const char *const *data) |
Public Attributes | |
const char *const * | data |
#include "image_name.xpm" static xpmImage image_name(image_name_xpm);
FLTK recognizes a few extensions to the xpm color map: Setting the number of colors negative means the second line in the array is a "compressed" colormap, which is 4 bytes per color of character,r,g,b. If all colors are grays and there is no transparent index, it instead makes a MASK image, where black draws the current color and white is transparent, and all other grays are partially transparent. This allows you to put antialiased glyphs into images.
|
For xpmFileImage to reuse fetch() code.
|