Re: How to clear a Delphi Graph?

Posted by Godfried Hombergen on July 16, 2004

In Reply to: Re: How to clear a Graph? Very...very...newbie!!! posted by Joey *DClub* on July 12, 2004

: Image1.Picture.Bitmap := nil;

: This will empty the whooolleee bitmap! :)
: Joey ^__^

Thanks Joey... your simple Delphi line to clear a graph works.

However to redraw lines/reshow new graphs etc... the next statement appears to be necessary:
Image1.Picture.Graphic: = Bitmap; (*ReAssign the bitmap to the image component*)

Is this the only solution?

Related Articles and Replies

[ DelphiLand FAQ ]