Path: utzoo!attcan!uunet!ogicse!mintaka!bloom-beacon!SABER.COM!jimf From: jimf@SABER.COM Newsgroups: comp.windows.x Subject: Re: Can some one help me with Image package Message-ID: <9010241457.AA10556@armory> Date: 24 Oct 90 14:57:35 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 |>> I get |>> around this by defining my own image format and slamming it into the |>> XImage structure. The code that transforms into server-native |>> format is much more efficient than the PutPixel/GetPixel code so |>> there's a big jump in throughput. |> Yes we did this originally, too, but found that some servers do *NOT* |> accept any old format that you stuff into an XImage structure. As "der Mouse" said, if it's not working then it's a bug in your Xlib since it normally does the conversion before sending the image off to the server. My application works across a huge range of servers so this can't be a very common problem. The only thing I can think of is that you supplied an n-plane image for a server that didn't support n-plane pixmaps, something that XPutImage won't correct for you and which will generate an error from the server. That's extremely common. Code that does necessary conversions and ships arbitrary images off to a server is available in my xloadimage program in send.c with a number of different image processing functions. This code is fairly fast and very portable so it might be worth looking at. It can be picked up by anonymous ftp from expo.lcs.mit.edu in /contrib/xloadimage.2.01.tar.Z. Happy hacking, jim frost saber software jimf@saber.com