home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!mcsun!julienas!ircam!francis
- From: francis@ircam.fr (Joseph Francis)
- Subject: Re: An Open Challenge (it can't be done!)
- Message-ID: <1993Jan6.173059.24471@ircam.fr>
- Keywords: xor cursors images biscuits
- Organization: IRCAM, Paris (France)
- References: <78716@hydra.gatech.EDU> <1i9kuuINNcr6@irz401.inf.tu-dresden.de>
- Date: Wed, 6 Jan 93 17:30:59 GMT
- Lines: 34
-
- In article <1i9kuuINNcr6@irz401.inf.tu-dresden.de> Andre_Beck@IRS.Inf.TU-Dresden.DE writes:
- >
- >The Problem was:
- >>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)
- >
- >If you already have the backing pixmap, why not do the following:
- >
- >Keep a list of all lines.
- >
- >To redraw, XCopyArea the pixmap to the window, then draw the line list to
- >the window.
- >
- >To add/remove lines, simply add/remove them to/from your list, then redraw.
- >
- >(I understand you the way, that you are drawing the lines to the pixmap,
- > if not, it will get simple for you).
- >
- >Another but not so good way would be a proper selected PlaneMask.
-
- Repeatedly drawn xor dashed lines with shifting dash start points will
- give you a distinct crawling edge, or a simple repeatedly drawn xor
- line will give you a flickering edge. I've seen and used both in
- manipulating high-noise photographic images without difficulty. It
- would really depend upon whether the eye's movement detectors or edge
- detectors were more sensitive. I think the movement would be best.
- --
- | Le Jojo: Fresh 'n' Clean, speaking out to the way you want to live
- | today; American - All American; doing, a bit so, and even more so.
-