xpmImage Class Reference

Inherits Image.

List of all members.

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


Detailed Description

Draws inline XPM data. This is a text-based 256-color image format designed for X11 and still very useful for making small icons, since the data can be easily inserted into your source code:

#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.


Member Function Documentation

bool xpmImage::fetch Image ,
const char *const *  data
[static]
 

For xpmFileImage to reuse fetch() code.


The documentation for this class was generated from the following files:
Sun Jan 7 00:55:19 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.