RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMetafileCanvas.Destroy Destructor

Destroys an instance of the TMetafileCanvas after transferring the image to the TMetafile object that was passed to the constructor.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TMetafileCanvas();

Do not call Destroy directly in an application. Instead, call Free. Free verifies that the TMetafileCanvas reference is not nil, and only then calls Destroy. 

Destroy sets the Handle property of the TMetafile object that was passed to the constructor before freeing the memory associated with the object. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!