Article View: comp.windows.x
Article #23768how to erase lines?
From: Nick Street
Date: Mon, 17 Jun 1991 03:29
Date: Mon, 17 Jun 1991 03:29
20 lines
1287 bytes
1287 bytes
I have an application which reads a gray-scale image and displays it. Now, I also want to draw things on top of it, a la John Madden. I've created a separate GC to do this on, and things like XDrawLine and XFillRectangle work very nicely. Erasing a point or a box is easy; just XPutImage from the internal image to the screen. Is there a way to analogously erase a line? Setting the GC funcion to clear or XOR and redrawing the line leaves a blank trail, which is obviously unacceptable. Am I going to be forced to abandon XDrawLine and compute the points myself so that they can later be erased with XPutImage? This is probably trivial, so please respond by email. Thanks very much. -- ------------------------------------------------------------------------ Nick Street | "Go Make Plans" street@cs.wisc.edu | -Bob husband, father, grad student, liberal, Cub fan
Technical Details
Message-ID:
<1991Jun17.032911.22721@spool.cs.wisc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!goat.cs.wisc.edu!streetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!goat.cs.wisc.edu!street From: street@goat.cs.wisc.edu (Nick Street) Newsgroups: comp.windows.x Subject: how to erase lines? Message-ID: <1991Jun17.032911.22721@spool.cs.wisc.edu> Date: 17 Jun 91 03:29:11 GMT Sender: news@spool.cs.wisc.edu (The News) Distribution: usa Organization: U of Wisconsin CS Dept Lines: 20