street@goat.cs.wisc.edu (Nick Street) (06/17/91)
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