How to clear a Graph? Very...very...newbie!!!


[ DelphiLand FAQ ]

Posted by Godfried Hombergen on July 12, 2004 at 01:22:15:

I'm testing mathematical functions by drawing graphs of them. I use code such like:
Image1.picture.bitmap.canvas.MoveTo,
..LineTo with x,y the variable-values of the functions, and things like: ..Pen.Color, ..Pen.Style ..etc....etc....
So far nice graphs appear on my screen.
I made a rescale button with eventhandler to enlarge or decrease the graph-amplitude. The new Graph comes on my screen as well, but over the old one. However the original graph should be replaced by the new one. How to clear the first picture before drawing the second?



Related Articles and Replies:




[ DelphiLand FAQ ]