Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: ch@siet02.sietec.de (Chitty) Newsgroups: comp.windows.x Subject: Re: XImage help Message-ID: <9104101536.AA17399@siet02.sietec.de> Date: 10 Apr 91 15:36:10 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 Thanks for the suggestions. Passing in bytes-per-line as 0 fixed the skewing problem. Then there was a bit/byte-order problem which I fixed by tweaking the appropriate slots in the image. Now I'm still fighting with the colors, though. Like, I'm allocating the right colors (with XAllocColor), and remapping the image to have pixel values that correspond to the cmap cells that wee allocated, but it's still using the wrong colors. Hint ==== Have a close look at your bits_per_rgb for your X Server. Thus the server will use only the significant bits as specified in this field. Set your color map based on these entry. All the best for e.g. depth = 8 and bits_per_rgb = 4 bit configuration will be X X X X V V V V X - Don't Care V - Valid Bits Thus one can have only 16 different entries. =================================================================== Name : Chittaranjan Keswani Sietec, West Berlin Address : ch@siet02.sietec.de (Internet) ..!sietec1!siet02!ch@unido.uucp (UUCP) ===================================================================