home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
- From: fox@pt0204.pto.ford.com (Ken Fox)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: Load pixmap into pixmap
- Message-ID: <1992Nov17.162153.29728@sm.sony.co.jp>
- Date: 17 Nov 92 16:21:53 GMT
- Sender: daemon@sm.sony.co.jp (The devil himself)
- Distribution: fj
- Organization: Workstation Div., Supermicro Systems Group, Sony Corporation
- Lines: 31
- Approved: michael@sm.sony.co.jp
-
- Message-Id: <9211171500.AA07094@pt0204.pto.ford.com>
- Date: Tue, 17 Nov 92 10:00:40 EST
- In-Reply-To: <1992Nov16.184809.2642@lsl.co.uk>; from "snail@lsl.co.uk" at Nov 16, 92 5:48 pm
- X-Mailer: ELM [version 2.3 PL11]
-
-
- > > image = XGetImage(dpy, userpixmap, 0,0, width, height,
- > > 1, XYPixmap);
- > >
- > > XPutImage(dpy,win, gc,image,0,0,posX,
- > > posY,image->width, image->height);
- > > XPutImage(dpy,pixmap, gc,image,0,0,posX,
- > > posY,image->width, image->height);
- >
- > swap the second XPutImage with an XCopyArea from the 'win' to the 'pixmap'.
- > as follows:-
- > XCopyArea(dpy, win, pixmap, gc,
- > 0, 0, image->width, image->height,
- > PosX, PosY);
-
- This is dangerous since win might be obscured, in which case, unless it has
- backing store, *nothing* will be copied into the pixmap. XPutImage into
- pixmap first, then XCopyArea it into win.
-
- --
- Ken Fox (fox@pt0204.pto.ford.com) | My opinions or statements do not
- | represent those of, nor are endorsed by,
- | Ford Motor Company.
- CAD/CAM Technology Section |
- CAD/CAM/CAE Process Integration | "Is this some sort of trick question
- Ford Motor Company | or what?" -- Calvin
-