Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!apple!netcom!stratus!cloud9!xylogics!world!madd From: madd@world.std.com (jim frost) Newsgroups: comp.windows.x Subject: Re: Clip Masks Message-ID: <1989Dec15.141555.9750@world.std.com> Date: 15 Dec 89 14:15:55 GMT References: <1506@utkcs2.cs.utk.edu> Organization: Software Tool & Die Lines: 18 battle@alphard.cs.utk.edu (David Battle) writes: >The only problem is that: > 1) XCreateImage requires a visual which must "match the visual > of the window [or pixmap, I presume] the image is to be displayed > in". > 2) My server does not support any depth 1 visuals. > 3) A clip_mask must be a depth 1 pixmap. You can create depth 1 pixmaps anyway. I usually do something like the following: pixmap= XCreatePixmap(disp, RootWindow(disp, scrn), width, height, 1); Works fine. Depth 1 is a special case; I'd quote chapter line and verse but my documentation isn't handy, only my source. jim frost jimf@saber.com