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

  1. Path: sparky!uunet!lhdsy1!kato.lahabra.chevron.com!hwrvo
  2. From: hwrvo@kato.lahabra.chevron.com (W.R. Volz)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: An Open Challenge (it can't be done!)
  5. Message-ID: <8916@lhdsy1.lahabra.chevron.com>
  6. Date: 4 Jan 93 17:41:41 GMT
  7. References: <9212231058.AA09813@westhawk.uucp>
  8. Sender: news@lhdsy1.lahabra.chevron.com
  9. Organization: Chevron Oil Field Research Company
  10. Lines: 32
  11.  
  12. In article <9212231058.AA09813@westhawk.uucp>, thp@westhawk.UUCP (Timothy H Panton) writes:
  13. |> 
  14. |> > Here's the short form:
  15. |> >  - 8 bit image in backing pixmap used to update window
  16. |> >  - Image drawn in 8 bit X window
  17. |> >  - Want to draw diagonal lines on top of image that can
  18. |> >    be removed quickly (i.e. replace them with the data they so
  19. |> >    recently covered)
  20. |> >  - Can't do server extensions (too many platforms to support)
  21. |> > Betcha can't do it!
  22. |> 
  23. |> You don't say that the image changes quickly, so you could try creating
  24. |> a child window on top of your image, with window the background_pixmap
  25. |> as none. This window will copy the bits of the image. You can now draw
  26. |> in this window. When you want to erase the line just destroy the
  27. |> window, the main image will then be exposed.
  28. |> 
  29.  
  30. This reminds me of another way. Create a window with a size equal
  31. to the size of the pixmap. Make the pixmap the background pixmap.
  32. You can draw and erase as much as you like. Don't know what happens
  33. if the images change rapidly though and you have to catch resize
  34. events or disable them.
  35.  
  36. -- 
  37.  
  38. ======================
  39. Bill Volz
  40. Chevron Oil Field Research Co.
  41. Exploration Research/Geophysics Division.
  42. P.O. Box 446, La Habra, CA 90633-0446
  43. Phone: (310) 694-9340
  44.