(bitmap-writexbm bitmap filename)
This procedure writes the supplied bitmap to the file with the name filename in the X11 XBM file format (1 is black and 0 white).
The file is written and created if required.
unspecified (ok)
> (bitmap-writexbm (bitmap-create 8 8) "/tmp/out.xbm")
ok
>
The contents of file /tmp/out.xbm are then as follows:
#define out.xbm_width 8
#define out.xbm_height 8
static unsigned char out.xbm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};