DelphiVCL.Metafile or TMetafile is an encapsulation of the Win32 Enhanced metafile.
DelphiVCL.Metafile contains a metafile graphic (EMF file format).
Properties of TMetafile indicate the size and characteristics of the metafile.
To draw a metafile on a canvas, call the Draw or StretchDraw methods of a TCanvas object, passing a TMetafile as a parameter. The Enhanced property determines how the metafile will be stored on disk. If Enhanced is true, the metafile is stored as an .EMF (Win32 Enhanced Metafile) file. If Enhanced is false, the metafile is stored as a .WMF (Windows 3.1 Metafile, with Aldus header).
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Metafile using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Metafile) |
See the responses in our Windows command prompt:
You can also read short informations about the DelphiVCL.Metafile using the print() command:
1 2 |
print(DelphiVCL.Metafile) print(DelphiVCL.Metafile.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.