Metafile Constructor (IntPtr, EmfType)

 

Initializes a new instance of the Metafile class from the specified handle to a device context and an EmfType enumeration that specifies the format of the Metafile.

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

public Metafile(
	IntPtr referenceHdc,
	EmfType emfType
)

Parameters

referenceHdc
Type: System.IntPtr

The handle to a device context.

emfType
Type: System.Drawing.Imaging.EmfType

An EmfType that specifies the format of the Metafile.

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: