xbmImage Class Reference

Inherits Image.

List of all members.

Public Member Functions

 xbmImage (const unsigned char *bits, int w, int h)
 xbmImage (const char *bits, int w, int h)
bool fetch ()

Public Attributes

const unsigned char * array


Detailed Description

Image based on a 1-bit bitmap from memory. This matches the very first type of image provided with X10 in 1980 or so. To use an actual xbm file:

#include "image_name.xbm"
static xbmImage image_name(image_name_bits, image_name_width, image_name_height);

Each byte in the bitmap determines 8 pixels, a 1 bit is opaque and a 0 bit is transparent. The low-order bit is the left-most (this is inverted from similar data used by Windows). If the width is not a multiple of 8 each line starts at the start of the next byte.


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.