Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!wilkins.iaims.bcm.tmc.edu!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: XCreatePixmapFromBitmapData misusing .... Message-ID: <1990Oct11.165053@wilkins.iaims.bcm.tmc.edu> Date: 11 Oct 90 21:50:53 GMT Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Followup-To: Re: XCreatePixmapFromBitmapData misusing .... Lines: 21 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu The Athena Label Widget, techincally, only takes BITMAPS and not PIXMAPS. There is a distinction. A BITMAP contains 1's and 0's. A PIXMAP contains Pixel Values. When the Athena label widget tries to write out a BITMAP, it maps 1's and 0's to foreground and background. You had already permuted these values with XCreatePixmapFromBitmapData. You should NOT be using this routine for this purpose, you should be using XCreateBitmapFromData. The Athena Label widget actually tries it best with a pixmap by testing its depth. If depth 1 it assumes a BITMAP, otherwise, it assumes a PIXMAP. If you were on a multi-plane device, your problem would mysteriously disappear. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bmc.tmc.edu (713) 798-3776