Implementing an eraser pen?
Posted on 2000-02-28
I'm drawing a curve that is rapidly changing on a background. One method to update the curve is to redraw the whole background and to draw the new curve, but this is fairly slow since the background bitmap is big.
Is there a way I could create an erasing pen that erases the curve by simply drawing over it? The pen would somehow be created using the background bitmap... OR, any faster method to perform this task?
Note, the curve pen is more than 1 pixel thick, and the background bitmap could be any picture, not just a simple filled rectangle.