Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!widener!netnews.upenn.edu!msuinfo!arirang.cps.msu.edu!courtney From: courtney@arirang.cps.msu.edu (Jonathan Courtney) Newsgroups: comp.windows.open-look Subject: Re: that !!@#$#@ color problem Keywords: solution Message-ID: <1991Apr8.193159.11640@msuinfo.cl.msu.edu> Date: 8 Apr 91 19:31:59 GMT References: <1991Apr7.002141.24406@ee.rochester.edu> Sender: news@msuinfo.cl.msu.edu Reply-To: courtney@arirang.cps.msu.edu (Jonathan Courtney) Distribution: usa Organization: PRIP Lab, Comp. Sci. Dept., MSU Lines: 25 I think I might have found a fix for our server image problem. Apparently, xv_create calls to make server images objects zero out the input data before it stores it in its internal pixmap. So the solution is to bypass the data processing phase, right? The Solution: Create an XImage of the data you wish to display. Write this image with XPutImage to a pixmap that you create of the same size. Then use this pixmap as the input to the server image create call, as such: image = xv_create(NULL, SERVER_IMAGE, SERVER_IMAGE_PIXMAP, pixmap, NULL); Believe it or not, this works. Unfortunately, it is only useful if you are restricted to use only server image types instead of an XImage. In my case, I can't use an XImage because I am trying to use the data as part of an XView list object. Jon Courtney