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