home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20478 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.9 KB

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