Vcl.Graphics.TMetafileCanvas.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TMetafileCanvas();

Properties

Type Visibility Source Unit Parent
destructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TMetafileCanvas

Description

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

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.

See Also