Using Xlib: I'm trying to display a pixmap with a transparent colour (color). That is a colour that will show the background. Currently drawing the pixmap completely opaque using XCopyArea (). How can I make this transparent (to work like XDrawString)?
Thanks
GC pixgc = XCreateGC (XDisplay, pix, 0, NULL);
XSetForeground (XDisplay, pixgc, ColourToXColour (RGB (0xff, 0xFF, 0xff)));
XFillRectangle (XDisplay, pix, pixgc, 0, 0, 32, 32);
XSetForeground (XDisplay, pixgc, ColourToXColour (RGB (0x00, 0x80, 0x80)));
XDrawLine (XDisplay, pix, pixgc, 8, 8, 8 + 16, 8 + 16);
XDrawLine (XDisplay, pix, pixgc, 8, 8 + 16, 8 + 16, 8);
XDrawArc (XDisplay, pix, pixgc, 6, 6, 20, 20, 0, 270 * 64);
XCopyArea (XDisplay, pix, Res->XWindow, DefaultGC (XDisplay, XScreen), 0, 0, 32, 32, 10, 50);