Metafile Constructor (IntPtr, WmfPlaceableFileHeader^, Boolean)

 

Initializes a new instance of the Metafile class from the specified handle and a WmfPlaceableFileHeader. Also, the deleteWmf parameter can be used to delete the handle when the metafile is deleted.

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

public:
Metafile(
	IntPtr hmetafile,
	WmfPlaceableFileHeader^ wmfHeader,
	bool deleteWmf
)

Parameters

hmetafile
Type: System::IntPtr

A windows handle to a Metafile.

wmfHeader
Type: System.Drawing.Imaging::WmfPlaceableFileHeader^

A WmfPlaceableFileHeader.

deleteWmf
Type: System::Boolean

true to delete the handle to the new Metafile when the Metafile is deleted; otherwise, false.

SecurityPermission

for access to unmanaged code. Related enumeration: SecurityPermissionFlag::UnmanagedCode

.NET Framework
Available since 1.1
Return to top
Show: