Metafile.Metafile
Metafile(IntPtr, bool)
Initializes a new instance of the Metafile
class from the specified handle.
public Metafile(IntPtr henhmetafile, bool deleteEmf)
Parameter | Type | Description |
---|---|---|
henhmetafile | IntPtr | A handle to an enhanced metafile. |
deleteEmf | Boolean | true to delete the enhanced metafile handle when the Metafile is deleted; otherwise, false. |
See Also
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
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)
Parameter | Type | Description |
---|---|---|
referenceHdc | IntPtr | The handle to a device context. |
emfType | EmfType | An EmfType that specifies the format of the Metafile. |
See Also
- enum EmfType
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
Metafile(string)
Initializes a new instance of the Metafile
class from the specified file name.
public Metafile(string filename)
Parameter | Type | Description |
---|---|---|
filename | String | A String that represents the file name from which to create the new Metafile. |
See Also
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
Metafile(string, IntPtr)
Initializes a new instance of the Metafile
class from the specified file name.
public Metafile(string filename, IntPtr referenceHdc)
Parameter | Type | Description |
---|---|---|
filename | String | A String that represents the file name from which to create the new Metafile. |
referenceHdc | IntPtr | A Windows handle to a device context. |
See Also
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
Metafile(Stream)
Initializes a new instance of the Metafile
class from the specified data stream.
public Metafile(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The Stream from which to create the new Metafile. |
See Also
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
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)
Parameter | Type | Description |
---|---|---|
stream | Stream | A Stream that contains the data for this Metafile. |
referenceHdc | IntPtr | A Windows handle to a device context of the Metafile object. |
See Also
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
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)
Parameter | Type | Description |
---|---|---|
stream | Stream | A Stream that contains the data for this Metafile. |
referenceHdc | IntPtr | A Windows handle to a device context. |
type | EmfType | An EmfType that specifies the format of the Metafile. |
See Also
- enum EmfType
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing
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)
Parameter | Type | Description |
---|---|---|
stream | Stream | A Stream that contains the data for this Metafile. |
referenceHdc | IntPtr | A Windows handle to a device context. |
frameRect | RectangleF | A Rectangle that represents the rectangle that bounds the new Metafile. |
frameUnit | MetafileFrameUnit | A MetafileFrameUnit that specifies the unit of measure for frameRect. |
type | EmfType | An EmfType that specifies the format of the Metafile. |
See Also
- struct RectangleF
- enum MetafileFrameUnit
- enum EmfType
- class Metafile
- namespace System.Drawing.Imaging
- assembly Aspose.Drawing