re xcopyplane question i am trying to use xcopyplane to copy a single plane from a depth pixmap to a depth pixmap everytime i try this i see absolutely nothing displayed i know there is data in the depth pixmap becuase i have checked by doing an xcopyarea to the screen i have been successful getting xcopyplane to work if i use two pixmaps of depth is there a problem with what i am trying to do could someone please scan my code segment and let me know where i am going wrong i have created a xmdrawingarea widget called canvas w id xtwindow canvas display xtdisplay canvas screen defaultscreen display pixmap xcreatepixmap display rootwindow display screen w width w height defaultdepth display screen pixmap xcreatepixmap display rootwindow display screen w width w height w gc xcreategc display w id null w gc xcreategc display pixmap null code to read xwd image into pixmap is omitted have you set the foreground and background colors in w gc to something other than and the whitepixel and blackpixel macros on your server may not return values suitable for depth drawables copy one plane into the depth pixmap xcopyplane display pixmap pixmap w gc w width w height are you sure that the fifth plane of the data isn t all the same you could have different pixel values in the image but the fifth plane x might all be the same value using the depth pixmap as the clipmask copy it to the screen values foreground fg color values clip x origin values clip y origin values clip mask pixmap mask gcforeground gcclipmask xchangegc display w gc mask values xfillrectangle display w id w gc w width w height if you just want to see the plane of data and want better performance don t use clipmasks just use pixmap as the stipple in a stippled rectangle fill many servers are very stupid about handling complex clip lists and turn a bitmap clip region into hundreds and hundreds of little clipping rectangles and clips every drawing primitive against every one of these little triangles actually i must also ask the faq s most popular reason why graphics don t show up do you wait for an expose event before drawing your rectangle other info x r patchlevel motif sun sparc running sunos thanks in advance nancie p marin net nancie neko css gov ensco inc mail pineda ct melbourne fl fax kenneth whaley kubota pacific computer inc email whaley kpc com walsh avenue santa clara ca
