home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!irz401!irs131.inf.tu-dresden.de!beck
- From: beck@irs131.inf.tu-dresden.de (Andre Beck)
- Newsgroups: comp.windows.x
- Subject: Re: An Open Challenge (it can't be done!)
- Date: 4 Jan 1993 15:26:22 GMT
- Organization: Dept. of Computer Science, TU Dresden, Germany.
- Lines: 32
- Distribution: world
- Message-ID: <1i9kuuINNcr6@irz401.inf.tu-dresden.de>
- References: <78716@hydra.gatech.EDU>
- Reply-To: Andre_Beck@IRS.Inf.TU-Dresden.DE
- NNTP-Posting-Host: irs131.inf.tu-dresden.de
- Keywords: xor cursors images biscuits
-
-
- 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.
-
-
- --
- +-o-+--------------------------------------------------------------+-o-+
- | o | Your .signature timeout has expired, please choose a new one | o |
- | o | This one is dedicated to all copy-and-edit-my-sign-guys... | o |
- | o | \\\----/// | o |
- | o | Andre' Beck (ABPSoft) mehl: Andre_Beck@IRS.Inf.TU-Dresden.DE | o |
- +-o-+--------------------------------------------------------------+-o-+
-