Pixmaps

Russell Shaw rjshaw at netspace.net.au
Tue Dec 27 19:20:09 PST 2005


Hi,
I have a #included pixmap:

/* XPM */
static char * mozicon16_xpm[] = {
"16 16 137 2",
"       c None",
".      c #388BBF",
"+      c #59ADD6",
"@      c #68CEEF",
"#      c #62CCEE",
"$      c #45AAD7",
...


How do i draw this into an X window?

There are things like XCreatePixmap(), XCreateImage(), XPutImage(),
XCreatePixmapFromBitmapData(), etc,
but i can't find anything that converts the xpm data above straight
into a pixmap or can draw it on a window.



More information about the xorg mailing list