home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: gt4417a@prism.gatech.EDU (SKELTON,JOEL PHILLIP)
- Newsgroups: fj.mail-lists.x-window
- Subject: An Open Challenge (it can't be done!)
- Message-ID: <1992Dec22.183443.8752@sm.sony.co.jp>
- Date: 22 Dec 92 18:34:43 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: Georgia Institute of Technology
- Lines: 43
- Approved: michael@sm.sony.co.jp
-
- Date: 22 Dec 92 15:52:03 GMT
- Message-Id: <78716@hydra.gatech.EDU>
- Newsgroups: comp.windows.x
- Sender: xpert-request@expo.lcs.mit.edu
-
-
- Here's the story: We have an application that we've written to
- display multiband satellite image files in X windows. The client
- program maintains an XImage with the red, green, and blue data
- from the part of the file being looked at. This is quantized in
- some fashion into an eight bit server Pixmap that is used to
- update the screen quickly. The application is used for many
- kinds of area selection operations which require drawing selector
- boxes and polygons on the screen. When the boxes are oriented
- horizontal/vertical then it is easy to draw them with in GXcopy
- mode after having saved what was under them to line shaped pixmaps.
- But when we draw diagonal lines we can't save them that way so
- we use GXxor mode to draw them. This is okay if the image is
- all one color but for a complex satellite image or a noisy image
- an xor'ed line is nearly invisible.
-
- After much thought I've gloomily concluded that nothing short
- of a (unacceptable to our application) server extension will
- give me quickly 'eraseable' diagonal lines on top of an image drawn
- to an X window. I now challenge (nay, beg) someone to prove me wrong.
-
- 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!
-
- jps
- bf
-
- --
- Joel Skelton -- North Avenue Trade School, Dept. of Round Things
- gt4417a@prism.gatech.edu (ask for Scooter Technologies, and receive)
-