Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!aurora!labrea!agate!ucbvax!bay.Berkeley.EDU!deboor From: deboor@bay.Berkeley.EDU.berkeley.edu (Adam R de Boor) Newsgroups: comp.windows.x Subject: Re: XCreateBitmapFromData() bug/feature question Message-ID: <22884@ucbvax.BERKELEY.EDU> Date: 5 Feb 88 06:43:02 GMT References: <8802042049.AA06105@amadeus.silvlis.com> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: deboor@bay.Berkeley.EDU.UUCP (Adam R de Boor) Organization: University of California, Berkeley Lines: 8 Summary: noooooo!!!! what you need to do is declare the bitmap as an array of characters, *not* an array of shorts. You then place the data in in little-endian order and can use XCreateBitmapFromData just fine. This is the format 'bitmap' puts out. If your bitmap is in the standard X10 format, you can use the program 'bm-convert' found in the 'utils' directory of the distribution to convert to the X11 normal form. a