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