home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20816 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.8 KB  |  46 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!mcsun!julienas!ircam!francis
  3. From: francis@ircam.fr (Joseph Francis)
  4. Subject: Re: An Open Challenge (it can't be done!)
  5. Message-ID: <1993Jan6.173059.24471@ircam.fr>
  6. Keywords: xor cursors images biscuits
  7. Organization: IRCAM, Paris (France)
  8. References: <78716@hydra.gatech.EDU> <1i9kuuINNcr6@irz401.inf.tu-dresden.de>
  9. Date: Wed, 6 Jan 93 17:30:59 GMT
  10. Lines: 34
  11.  
  12. In article <1i9kuuINNcr6@irz401.inf.tu-dresden.de> Andre_Beck@IRS.Inf.TU-Dresden.DE writes:
  13. >
  14. >The Problem was:
  15. >>Here's the short form:
  16. >> - 8 bit image in backing pixmap used to update window
  17. >> - Image drawn in 8 bit X window
  18. >> - Want to draw diagonal lines on top of image that can
  19. >>   be removed quickly (i.e. replace them with the data they so
  20. >>   recently covered)
  21. >> - Can't do server extensions (too many platforms to support)
  22. >
  23. >If you already have the backing pixmap, why not do the following:
  24. >
  25. >Keep a list of all lines.
  26. >
  27. >To redraw, XCopyArea the pixmap to the window, then draw the line list to
  28. >the window.
  29. >
  30. >To add/remove lines, simply add/remove them to/from your list, then redraw.
  31. >
  32. >(I understand you the way, that you are drawing the lines to the pixmap,
  33. > if not, it will get simple for you).
  34. >
  35. >Another but not so good way would be a proper selected PlaneMask.
  36.  
  37. Repeatedly drawn xor dashed lines with shifting dash start points will
  38. give you a distinct crawling edge, or a simple repeatedly drawn xor
  39. line will give you a flickering edge. I've seen and used both in
  40. manipulating high-noise photographic images without difficulty.  It
  41. would really depend upon whether the eye's movement detectors or edge
  42. detectors were more sensitive. I think the movement would be best.
  43. -- 
  44. | Le Jojo: Fresh 'n' Clean, speaking out to the way you want to live
  45. | today; American - All American; doing, a bit so, and even more so.
  46.