home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!lsl!snail
- From: snail@lsl.co.uk
- Newsgroups: comp.windows.x
- Subject: Re: Load pixmap into pixmap
- Message-ID: <1992Nov23.123057.2669@lsl.co.uk>
- Date: 23 Nov 92 11:30:57 GMT
- References: <1992Nov7.142104.23123@alf.uib.no> <1992Nov16.184809.2642@lsl.co.uk> <890@metrix.UUCP>
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 31
-
- In article <890@metrix.UUCP>, ama@metrix.UUCP (Alan Amaral) writes:
- > What you have suggested is NOT guaranteed to work, as the window may be
- > unmapped, or partially or totally obscured, and backing store may not be
- > available. Thus the copy that you get (if you get anything) in the pixmap
- > may not be what you expect.
- >
- > Doing the XPutImage to the pixmap FIRST, and then copying from the pixmap to
- > the window will work in any case...
- >
- > So, the code would look more like this:
- >
- > XPutImage(dpy,pixmap, gc,image,0,0,posX,
- > posY,image->width, image->height);
- >
- > XCopyArea(dpy, pixmap, win, gc,
- > 0, 0, image->width, image->height,
- > PosX, PosY);
-
- Indeed, you are correct, and it is the latter method we use where I work, I
- should have addressed this when I posted, but I was more concerned with
- replacing the second PutImage with a CopyArea rather than ensuring the pixmap
- was first.
- > --
- > Alan Amaral | Email: ama@metrix.COM
- > Metrix Network Systems | Voice: (603) 888-7000
- --
- snail@lsl.co.uk
-
- "para-phrasing an American's .sig"....
- For the record, I did not vote for Bill Clinton
- :-)
-