home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17556 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.9 KB

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