| Run paint
Use the Customize Picture Size... option and choose non-standard from the
option menu and set the width and height to the size of the bitmap you want to
create.
Use paint to create the picture, I like to use zoom mode to handle the detail
work.
Save the picture as an X11 file (not a DDIF file.)
The X11 files C include that can be used for the data, width and height in the
XCreatePixmapFromBitmapData call.
#define clock_width 32
#define clock_height 32
#define clock_x_hot 0
#define clock_y_hot 0
static char clock_bits[] = {
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x80, 0xfd, 0xff, 0xff, 0xbf,
0x05, 0x00, 0x00, 0xa0, 0x05, 0xc0, 0x01, 0xa0, 0x05, 0xc0, 0x01, 0xa0,
0x05, 0xc0, 0x01, 0xa0, 0x05, 0x0c, 0x18, 0xa0, 0x05, 0x0c, 0x18, 0xa0,
0x05, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x00, 0xa0, 0x85, 0x01, 0xb0, 0xa1,
0x85, 0x01, 0x98, 0xa1, 0x05, 0x18, 0x0c, 0xa0, 0x05, 0x30, 0x06, 0xa0,
0x75, 0x60, 0x03, 0xae, 0x75, 0xc0, 0x01, 0xae, 0x75, 0x80, 0x00, 0xae,
0x05, 0x00, 0x00, 0xa0, 0x05, 0x00, 0x80, 0xa1, 0x85, 0x01, 0x80, 0xa1,
0x85, 0x01, 0x00, 0xa0, 0x05, 0x00, 0x00, 0xa0, 0x05, 0x0c, 0x18, 0xa0,
0x05, 0x0c, 0x18, 0xa0, 0x05, 0xc0, 0x01, 0xa0, 0x05, 0xc0, 0x01, 0xa0,
0x05, 0xc0, 0x01, 0xa0, 0x05, 0x00, 0x00, 0xa0, 0xfd, 0xff, 0xff, 0xbf,
0x01, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff};
Pixmap pid;
ScreenNumber = XDefaultScreen (dpy);
pid = XCreatePixmapFromBitmapData (dpy, root, clock_bits,
(Dimension) clock_width, (Dimension) clock_height,
(unsigned long) BlackPixel (dpy, ScreenNumber),
(unsigned long) WhitePixel (dpy, ScreenNumber),
(unsigned int) DefaultDepth (dpy, ScreenNumber));
|