Vcl.Graphics.TMetafile.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; override;

C++

__fastcall virtual TMetafile(void);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TMetafile

Description

Instantiates a metafile object.

Call Create to instantiate a metafile at runtime.

Create allocates memory for a metafile object, and calls the inherited Create. Then sets the Enhanced and Transparent properties to true.

To create a metafile image from scratch, draw the image in a metafile canvas. When the metafile canvas is destroyed, it transfers the image into the metafile object provided to the metafile canvas constructor. After the image is drawn on the canvas and the canvas is destroyed, the image is 'playable' in the metafile object.

See Also

Code Examples