RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMetafile.Destroy Destructor

Destroys an instance of a metafile object.

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

Do not call Destroy directly in an application. Instead, an application should call Free. Free verifies that the TMetafile reference is not nil before it calls Destroy. 

Destroy releases the image, which frees the image and the handle when the reference count on the metafile image is zero. Then Destroy calls the inherited Destroy. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!