home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: oj@miki.pictel.com (Oliver Jones)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: An Open Challenge (it can't be done!)
- Message-ID: <1992Dec24.200211.16311@sm.sony.co.jp>
- Date: 24 Dec 92 20:02:11 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: PictureTel Corporation
- Lines: 65
- Approved: michael@sm.sony.co.jp
-
- Date: Wed, 23 Dec 1992 19:03:42 GMT
- Message-Id: <1992Dec23.190342.1067@miki.pictel.com>
- Newsgroups: comp.windows.x
- References: <78716@hydra.gatech.EDU>
- Sender: xpert-request@expo.lcs.mit.edu
-
- In article <78716@hydra.gatech.EDU> gt4417a@prism.gatech.EDU (SKELTON,JOEL PHILLIP) writes:
-
- >...The application is used for many
- >kinds of area selection operations which require drawing selector
- >boxes and polygons on the screen. ...
-
- > - 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)
-
- If I understand your requirement correctly, you want to draw visible,
- yet ephemeral, annotations on your complex image, so your users can
- see the region of interest they're selecting (or whatever).
-
- >...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.
-
- From your description, you're taking the approach that you want
- your users to see the annotation clearly. But, I don't see anything
- in your requirements saying that the annotation has to be
- black, or white, or any particular color. Just visible.
-
- So, why don't you animate the annotation somehow, so the users can
- discern it via motion of some sort? It's easy to discern changing
- colors, even if the colors themselves don't have enough contrast
- to tell them apart when drawn statically.
-
- Draw all the annotation with XOR. While the annotation is up,
- continually erase and redraw it three times a second (from an Xt timer
- proc) slightly differently.
-
- Two approaches come to mind:
-
- (1) do xor drawing cycling through a series of about eight different
- foreground values -- for example:
-
- 1111 1110 FE
- 1111 1101 FD
- 1111 1011 FB
- 1111 0111 F7
- 1110 1111 EF
- 1101 1111 DF
- 1011 1111 BF
- 0111 1111 7F
-
- Even though the effect of XOR drawing in a random color map
- yields random colors, this technique should yield enough
- different random colors on your annotation lines over
- a period of a couple of seconds that users will see them
- clearly.
-
- (2) draw the annotation lines dashed, and redraw them continually
- as you reset the origin of the dash pattern. This will make
- the annotation lines crawl, the way lassos and marquees do
- on Mac drawing programs.
-