bitmap-writexbm

Synopsis

(bitmap-writexbm bitmap filename)

Parameters

  • bitmap
  • filename

Description

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

Side Effects

The file is written and created if required.

Return Value

unspecified (ok)

Example

> (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};