Path: utzoo!attcan!uunet!cs.utexas.edu!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: Bitmap => XImage => Widget Keywords: Help Message-ID: <2717@gazette.bcm.tmc.edu> Date: 12 Nov 90 15:29:09 GMT References: <16866@hydra.gatech.EDU> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 19 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu First of all, why are you specifying bytes_per_line? If you use 0, then the correct value is used. Otherwise, you should be using the equation : (image_width + 7) / 8. But this is not the problem since 13 is the correct value. Second of all, I am pretty sure that you have to change the image structure members bitmap_bit_order and byte_order to LSBFirst. Look at documentation for XCreatePixmapFromBitmapData in O'Reilly's book. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bmc.tmc.edu (713) 798-3776