home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18837 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.2 KB

  1. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: gt4417a@prism.gatech.EDU (SKELTON,JOEL PHILLIP)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: An Open Challenge (it can't be done!)
  5. Message-ID: <1992Dec22.183443.8752@sm.sony.co.jp>
  6. Date: 22 Dec 92 18:34:43 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: Georgia Institute of Technology
  10. Lines: 43
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 22 Dec 92 15:52:03 GMT
  14. Message-Id: <78716@hydra.gatech.EDU>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.  
  19. Here's the story: We have an application that we've written to
  20. display multiband satellite image files in X windows. The client
  21. program maintains an XImage with the red, green, and blue data 
  22. from the part of the file being looked at. This is quantized in
  23. some fashion into an eight bit server Pixmap that is used to
  24. update the screen quickly. The application is used for many
  25. kinds of area selection operations which require drawing selector
  26. boxes and polygons on the screen. When the boxes are oriented 
  27. horizontal/vertical then it is easy to draw them with in GXcopy
  28. mode after having saved what was under them to line shaped pixmaps.
  29. But when we draw diagonal lines we can't save them that way so
  30. we use GXxor mode to draw them. This is okay if the image is
  31. all one color but for a complex satellite image or a noisy image 
  32. an xor'ed line is nearly invisible. 
  33.  
  34. After much thought I've gloomily concluded that nothing short
  35. of a (unacceptable to our application) server extension will
  36. give me quickly 'eraseable' diagonal lines on top of an image drawn
  37. to an X window. I now challenge (nay, beg) someone to prove me wrong.
  38.  
  39. Here's the short form:
  40.  - 8 bit image in backing pixmap used to update window
  41.  - Image drawn in 8 bit X window
  42.  - Want to draw diagonal lines on top of image that can
  43.    be removed quickly (i.e. replace them with the data they so
  44.    recently covered)
  45.  - Can't do server extensions (too many platforms to support)
  46.  
  47.  
  48. Betcha can't do it!
  49.  
  50. jps
  51. bf
  52.  
  53. -- 
  54. Joel Skelton   --    North Avenue Trade School, Dept. of Round Things
  55. gt4417a@prism.gatech.edu   (ask for Scooter Technologies, and receive)
  56.