Path: utzoo!attcan!uunet!seismo!ukma!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!convex.UUCP!root From: root@convex.UUCP (Superuser) Newsgroups: comp.windows.x Subject: Lost mail for you Message-ID: <9006071736.AA16316@sushi> Date: 7 Jun 90 17:36:51 GMT Sender: root@athena.mit.edu (Wizard A. Root) Organization: The Internet Lines: 63 From pescadero.stanford.edu!expo.lcs.mit.edu!xpert-mailer Sat Jun 2 01:27:31 1990 remote from convex Received: by sushi (5.51/7.0) id AA07579; Sat, 2 Jun 90 01:27:31 CDT Received: by convex.COM (5.51/4.7) id AA17231; Sat, 2 Jun 90 01:27:24 CDT Received: from Erebus.Stanford.EDU by uxc.cso.uiuc.edu with SMTP (5.62+/IDA-1.2.8-900601) id AA05415 (for salevin%drlc1.UUCP@convex.com); Sat, 2 Jun 90 01:23:01 -0500 Received: from Hanauma.Stanford.EDU by erebus.Stanford.EDU with TCP; Fri, 1 Jun 90 23:24:29 PDT Received: by hanauma.stanford.edu (5.51/7.0) id AA03363; Fri, 1 Jun 90 23:22:50 PDT Received: from EXPO.LCS.MIT.EDU by Pescadero.Stanford.EDU (5.59/25-eef) id AA25332; Fri, 1 Jun 90 23:21:49 PDT Received: by expo.lcs.mit.edu; Fri, 1 Jun 90 21:31:11 EDT Received: from bloom-beacon.MIT.EDU by expo.lcs.mit.edu; Fri, 1 Jun 90 21:30:54 EDT Received: by bloom-beacon.MIT.EDU (5.61/25-eef) id AA06367; Fri, 1 Jun 90 20:38:25 EDT Received: from USENET by bloom-beacon.mit.edu with netnews for xpert@expo.lcs.mit.edu (xpert@expo.lcs.mit.edu) (contact usenet@bloom-beacon.mit.edu if you have questions) Date: 1 Jun 90 19:08:29 GMT From: convex!ucscc.UCSC.EDU!chucko (30502000) Organization: University of California, Santa Cruz CATS Subject: Pixmap vs. Image Message-Id: <3994@darkstar.ucsc.edu> Sender: convex!expo.lcs.mit.edu!xpert-request To: xpert@expo.lcs.mit.edu Summary: To use Pixmap or Image structures when pixel computations are performed often. I am in the design stage of an X application that involves quite a bit of image manipulation. Images come to me as 16-bit, and will usually be treated as 8-bit by my application. I need to keep around the 16-bit data in case I need to get to the real (unquantized) data. In order to "blend" or "overlay" 2 or more images and display them in an 8-bit deep window I need to do computations on corresponding pixels in each image to create the blended image (the computation is similar to finding the pixel value when using XStandardColormaps). My understanding, so far, is that images (Ximage structure) reside on the client and shipping them to my window can take lots of time (many <> seconds) for large images. Pixmaps, however, reside on the workstation (server) and can be loaded into the window much faster. Here's the question: If I have to do these computations (an add and multiply) on each pixel, and load the result into a window. First, where do the computations take place (server or client)? Second, if they take place on the client, is it faster to use Images which are already there, or use Pixmaps which seems to imply a round trip for each pixel? Which is faster, which is easier, which is politically correct???? Your help is much appreciated. Reply to the newsgroup if you think it's of interest to others, otherwise direct and perhaps I'll summarize. Chuck Stein chucko@ucscc.ucsc.edu Mirror Imaging / NOARL West { I do represent the opinion of my employer. }