fltk::xbmImage Class Reference

Inherits fltk::Image.

List of all members.

Public Member Functions

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

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.


Wed Jun 17 08:58:19 2009. FLTK ©2007 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.