Path: utzoo!attcan!uunet!samsung!sdd.hp.com!ucsd!ucbvax!U2.NCSA.UIUC.EDU!u36009 From: u36009@U2.NCSA.UIUC.EDU Newsgroups: comp.sys.apollo Subject: Re: XGetImage Message-ID: <9006081826.AA59326@u2.ncsa.uiuc.edu> Date: 8 Jun 90 18:26:53 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 22 > If you've got a window and you know all its properties (in X11 I mean), > is there a way to get the image data without doing an XGetImage, which > allocates memory and takes time to copy all the pixels? > I'd like to save a little time by just getting a pointer to the windows > image arrays, and using it. > Thanks, > Scott Ferguson > srfergu@erenj.bitnet I think the problem comes from the fact that the X-Window server contains the pixmap and the only way that the client can get at it is through its resource id. In other words, you cannot pass a pointer over the network to get at the pixmap. If you want the pixel contents for the drawable, you must copy them over the (possible) network from the server to the client. ============================================================================= Kem Ahlers u36009@u2.ncsa.uiuc.edu (Internet) Caterpillar, Inc. Peoria, IL USA