Derek,
(I hope that I have replied in the correct way.)
An X-Window book I have describes how to set up an icon thus:
#define IWidth 64
#define Iheight 64
static char Ibits[] = {
0x00, 0x00, ..........etc
0x04, 0x01, etc
etc
};
PixMap IPixMap;
And then creates the image as
IPixMap = XCreateBitmapFromData( theDisplay,
theNewWindow,
Ibits,
IWidth,
Iheight );
You could write your own data into the char variable and use
the above converter.
I am a raw beginner, so I don't know if this helps, but it
the way an old fashioned programmer would do it.
Regards,
Colin