home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20714 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.7 KB

  1. Path: sparky!uunet!math.fu-berlin.de!irz401!irs131.inf.tu-dresden.de!beck
  2. From: beck@irs131.inf.tu-dresden.de (Andre Beck)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: An Open Challenge (it can't be done!)
  5. Date: 4 Jan 1993 15:26:22 GMT
  6. Organization: Dept. of Computer Science, TU Dresden, Germany.
  7. Lines: 32
  8. Distribution: world
  9. Message-ID: <1i9kuuINNcr6@irz401.inf.tu-dresden.de>
  10. References: <78716@hydra.gatech.EDU>
  11. Reply-To: Andre_Beck@IRS.Inf.TU-Dresden.DE
  12. NNTP-Posting-Host: irs131.inf.tu-dresden.de
  13. Keywords: xor cursors images biscuits
  14.  
  15.  
  16. The Problem was:
  17. >Here's the short form:
  18. > - 8 bit image in backing pixmap used to update window
  19. > - Image drawn in 8 bit X window
  20. > - Want to draw diagonal lines on top of image that can
  21. >   be removed quickly (i.e. replace them with the data they so
  22. >   recently covered)
  23. > - Can't do server extensions (too many platforms to support)
  24.  
  25. If you already have the backing pixmap, why not do the following:
  26.  
  27. Keep a list of all lines.
  28.  
  29. To redraw, XCopyArea the pixmap to the window, then draw the line list to
  30. the window.
  31.  
  32. To add/remove lines, simply add/remove them to/from your list, then redraw.
  33.  
  34. (I understand you the way, that you are drawing the lines to the pixmap,
  35.  if not, it will get simple for you).
  36.  
  37. Another but not so good way would be a proper selected PlaneMask.
  38.  
  39.  
  40. --
  41. +-o-+--------------------------------------------------------------+-o-+
  42. | o | Your .signature timeout has expired, please choose a new one | o |
  43. | o | This one is dedicated to all copy-and-edit-my-sign-guys...   | o |
  44. | o |                        \\\----///                            | o |
  45. | o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.DE | o |
  46. +-o-+--------------------------------------------------------------+-o-+
  47.