clearing graphics partially

Søren
08-01-2003, 01:59 AM
How do I clear graphics partially ?

ex. if a circle and a line is drawn in a picture, how do I clear the circle only. Can it be done without redrawing the line ?

passel
08-01-2003, 07:26 PM
How do I clear graphics partially ?

ex. if a circle and a line is drawn in a picture, how do I clear the circle only. Can it be done without redrawing the line ?

If the circle overlaps any other figure, then the answer would generally
be no. If you know the circle is not overlaying any other figure, you
could redraw the circle in the background color thus "erasing it".

If you knew you wanted to draw some things on the screen, that you
plan to keep, and then you want to draw other things on top
temporarily, that you know you will want to erase, you can set
autoredraw to true, draw your "permanent" stuff, then set autoredraw
to false, and draw your "temporary" stuff. If you do a .cls to clear the
window, only the "temporary" stuff is cleared, the "permanent" stuff
will remain. To clear the "permanent" stuff, set autoredraw to True, and
then do the .cls.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum