Metafile.Metafile

Metafile(IntPtr, bool)

Initializes a new instance of the Metafile class from the specified handle.

public Metafile(IntPtr henhmetafile, bool deleteEmf)
ParameterTypeDescription
henhmetafileIntPtrA handle to an enhanced metafile.
deleteEmfBooleantrue to delete the enhanced metafile handle when the Metafile is deleted; otherwise, false.

See Also


Metafile(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.

public Metafile(IntPtr referenceHdc, EmfType emfType)
ParameterTypeDescription
referenceHdcIntPtrThe handle to a device context.
emfTypeEmfTypeAn EmfType that specifies the format of the Metafile.

See Also


Metafile(string)

Initializes a new instance of the Metafile class from the specified file name.

public Metafile(string filename)
ParameterTypeDescription
filenameStringA String that represents the file name from which to create the new Metafile.

See Also


Metafile(string, IntPtr)

Initializes a new instance of the Metafile class from the specified file name.

public Metafile(string filename, IntPtr referenceHdc)
ParameterTypeDescription
filenameStringA String that represents the file name from which to create the new Metafile.
referenceHdcIntPtrA Windows handle to a device context.

See Also


Metafile(Stream)

Initializes a new instance of the Metafile class from the specified data stream.

public Metafile(Stream stream)
ParameterTypeDescription
streamStreamThe Stream from which to create the new Metafile.

See Also


Metafile(Stream, IntPtr)

Initializes a new instance of the Metafile class from the specified data stream and a Windows handle to a device context. />.

public Metafile(Stream stream, IntPtr referenceHdc)
ParameterTypeDescription
streamStreamA Stream that contains the data for this Metafile.
referenceHdcIntPtrA Windows handle to a device context of the Metafile object.

See Also


Metafile(Stream, IntPtr, EmfType)

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

public Metafile(Stream stream, IntPtr referenceHdc, EmfType type)
ParameterTypeDescription
streamStreamA Stream that contains the data for this Metafile.
referenceHdcIntPtrA Windows handle to a device context.
typeEmfTypeAn EmfType that specifies the format of the Metafile.

See Also


Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType)

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

public Metafile(Stream stream, IntPtr referenceHdc, RectangleF frameRect, 
    MetafileFrameUnit frameUnit, EmfType type)
ParameterTypeDescription
streamStreamA Stream that contains the data for this Metafile.
referenceHdcIntPtrA Windows handle to a device context.
frameRectRectangleFA Rectangle that represents the rectangle that bounds the new Metafile.
frameUnitMetafileFrameUnitA MetafileFrameUnit that specifies the unit of measure for frameRect.
typeEmfTypeAn EmfType that specifies the format of the Metafile.

See Also