This documentation is archived and is not being maintained.

Metafile Constructor

.NET Framework 1.1

Initializes a new instance of the Metafile class.

Overload List

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

[Visual Basic] Public Sub New(Stream)
[C#] public Metafile(Stream);
[C++] public: Metafile(Stream*);
[JScript] public function Metafile(Stream);

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

[Visual Basic] Public Sub New(String)
[C#] public Metafile(string);
[C++] public: Metafile(String*);
[JScript] public function Metafile(String);

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

[Visual Basic] Public Sub New(IntPtr, Boolean)
[C#] public Metafile(IntPtr, bool);
[C++] public: Metafile(IntPtr, bool);
[JScript] public function Metafile(IntPtr, Boolean);

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.

[Visual Basic] Public Sub New(IntPtr, EmfType)
[C#] public Metafile(IntPtr, EmfType);
[C++] public: Metafile(IntPtr, EmfType);
[JScript] public function Metafile(IntPtr, EmfType);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle.

[Visual Basic] Public Sub New(IntPtr, Rectangle)
[C#] public Metafile(IntPtr, Rectangle);
[C++] public: Metafile(IntPtr, Rectangle);
[JScript] public function Metafile(IntPtr, Rectangle);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle.

[Visual Basic] Public Sub New(IntPtr, RectangleF)
[C#] public Metafile(IntPtr, RectangleF);
[C++] public: Metafile(IntPtr, RectangleF);
[JScript] public function Metafile(IntPtr, RectangleF);

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

[Visual Basic] Public Sub New(IntPtr, WmfPlaceableFileHeader)
[C#] public Metafile(IntPtr, WmfPlaceableFileHeader);
[C++] public: Metafile(IntPtr, WmfPlaceableFileHeader*);
[JScript] public function Metafile(IntPtr, WmfPlaceableFileHeader);

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

[Visual Basic] Public Sub New(Stream, IntPtr)
[C#] public Metafile(Stream, IntPtr);
[C++] public: Metafile(Stream*, IntPtr);
[JScript] public function Metafile(Stream, IntPtr);

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

[Visual Basic] Public Sub New(String, IntPtr)
[C#] public Metafile(string, IntPtr);
[C++] public: Metafile(String*, IntPtr);
[JScript] public function Metafile(String, IntPtr);

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 object. A string can be supplied to name the file.

[Visual Basic] Public Sub New(IntPtr, EmfType, String)
[C#] public Metafile(IntPtr, EmfType, string);
[C++] public: Metafile(IntPtr, EmfType, String*);
[JScript] public function Metafile(IntPtr, EmfType, String);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure.

[Visual Basic] Public Sub New(IntPtr, Rectangle, MetafileFrameUnit)
[C#] public Metafile(IntPtr, Rectangle, MetafileFrameUnit);
[C++] public: Metafile(IntPtr, Rectangle, MetafileFrameUnit);
[JScript] public function Metafile(IntPtr, Rectangle, MetafileFrameUnit);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure.

[Visual Basic] Public Sub New(IntPtr, RectangleF, MetafileFrameUnit)
[C#] public Metafile(IntPtr, RectangleF, MetafileFrameUnit);
[C++] public: Metafile(IntPtr, RectangleF, MetafileFrameUnit);
[JScript] public function Metafile(IntPtr, RectangleF, MetafileFrameUnit);

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

[Visual Basic] Public Sub New(IntPtr, WmfPlaceableFileHeader, Boolean)
[C#] public Metafile(IntPtr, WmfPlaceableFileHeader, bool);
[C++] public: Metafile(IntPtr, WmfPlaceableFileHeader*, bool);
[JScript] public function Metafile(IntPtr, WmfPlaceableFileHeader, Boolean);

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 object.

[Visual Basic] Public Sub New(Stream, IntPtr, EmfType)
[C#] public Metafile(Stream, IntPtr, EmfType);
[C++] public: Metafile(Stream*, IntPtr, EmfType);
[JScript] public function 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 a Rectangle structure that represents the rectangle that bounds the new Metafile object.

[Visual Basic] Public Sub New(Stream, IntPtr, Rectangle)
[C#] public Metafile(Stream, IntPtr, Rectangle);
[C++] public: Metafile(Stream*, IntPtr, Rectangle);
[JScript] public function Metafile(Stream, IntPtr, Rectangle);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and a RectangleF structure that represents the rectangle that bounds the new Metafile object.

[Visual Basic] Public Sub New(Stream, IntPtr, RectangleF)
[C#] public Metafile(Stream, IntPtr, RectangleF);
[C++] public: Metafile(Stream*, IntPtr, RectangleF);
[JScript] public function Metafile(Stream, IntPtr, RectangleF);

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

[Visual Basic] Public Sub New(String, IntPtr, EmfType)
[C#] public Metafile(string, IntPtr, EmfType);
[C++] public: Metafile(String*, IntPtr, EmfType);
[JScript] public function Metafile(String, IntPtr, EmfType);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, and a Rectangle structure that represents the rectangle that bounds the new Metafile object.

[Visual Basic] Public Sub New(String, IntPtr, Rectangle)
[C#] public Metafile(string, IntPtr, Rectangle);
[C++] public: Metafile(String*, IntPtr, Rectangle);
[JScript] public function Metafile(String, IntPtr, Rectangle);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, and A RectangleF structure that represents the rectangle that bounds the new Metafile object.

[Visual Basic] Public Sub New(String, IntPtr, RectangleF)
[C#] public Metafile(string, IntPtr, RectangleF);
[C++] public: Metafile(String*, IntPtr, RectangleF);
[JScript] public function Metafile(String, IntPtr, RectangleF);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(IntPtr, Rectangle, MetafileFrameUnit, EmfType)
[C#] public Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[C++] public: Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(IntPtr, RectangleF, MetafileFrameUnit, EmfType)
[C#] public Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[C++] public: Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(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 object. Also, a string that contains a descriptive name for the new Metafile object can be added.

[Visual Basic] Public Sub New(Stream, IntPtr, EmfType, String)
[C#] public Metafile(Stream, IntPtr, EmfType, string);
[C++] public: Metafile(Stream*, IntPtr, EmfType, String*);
[JScript] public function Metafile(Stream, IntPtr, EmfType, String);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and a Rectangle structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure.

[Visual Basic] Public Sub New(Stream, IntPtr, Rectangle, MetafileFrameUnit)
[C#] public Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit);
[C++] public: Metafile(Stream*, IntPtr, Rectangle, MetafileFrameUnit);
[JScript] public function Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, and a RectangleF structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure.

[Visual Basic] Public Sub New(Stream, IntPtr, RectangleF, MetafileFrameUnit)
[C#] public Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit);
[C++] public: Metafile(Stream*, IntPtr, RectangleF, MetafileFrameUnit);
[JScript] public function Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit);

Initializes a new instance of the Metafile class with the specified file name, from a Windows handle to a device context, and an EmfType enumeration that specifies the format of the Metafile object. A descriptive string can be added as well.

[Visual Basic] Public Sub New(String, IntPtr, EmfType, String)
[C#] public Metafile(string, IntPtr, EmfType, string);
[C++] public: Metafile(String*, IntPtr, EmfType, String*);
[JScript] public function Metafile(String, IntPtr, EmfType, String);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure.

[Visual Basic] Public Sub New(String, IntPtr, Rectangle, MetafileFrameUnit)
[C#] public Metafile(string, IntPtr, Rectangle, MetafileFrameUnit);
[C++] public: Metafile(String*, IntPtr, Rectangle, MetafileFrameUnit);
[JScript] public function Metafile(String, IntPtr, Rectangle, MetafileFrameUnit);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure.

[Visual Basic] Public Sub New(String, IntPtr, RectangleF, MetafileFrameUnit)
[C#] public Metafile(string, IntPtr, RectangleF, MetafileFrameUnit);
[C++] public: Metafile(String*, IntPtr, RectangleF, MetafileFrameUnit);
[JScript] public function Metafile(String, IntPtr, RectangleF, MetafileFrameUnit);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A string can be provided to name the file.

[Visual Basic] Public Sub New(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String);

Initializes a new instance of the Metafile class from the specified device context, bounded by the specified rectangle that uses the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A string can be provided to name the file.

[Visual Basic] Public Sub New(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
[C#] public Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[C++] public: Metafile(Stream*, IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
[C#] public Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[C++] public: Metafile(Stream*, IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
[C#] public Metafile(string, IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[C++] public: Metafile(String*, IntPtr, Rectangle, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure. A descriptive string can also be added.

[Visual Basic] Public Sub New(String, IntPtr, Rectangle, MetafileFrameUnit, String)
[C#] public Metafile(string, IntPtr, Rectangle, MetafileFrameUnit, string);
[C++] public: Metafile(String*, IntPtr, Rectangle, MetafileFrameUnit, String*);
[JScript] public function Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object.

[Visual Basic] Public Sub New(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
[C#] public Metafile(string, IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[C++] public: Metafile(String*, IntPtr, RectangleF, MetafileFrameUnit, EmfType);
[JScript] public function Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, and the supplied units of measure. A descriptive string can also be added.

[Visual Basic] Public Sub New(String, IntPtr, RectangleF, MetafileFrameUnit, String)
[C#] public Metafile(string, IntPtr, RectangleF, MetafileFrameUnit, string);
[C++] public: Metafile(String*, IntPtr, RectangleF, MetafileFrameUnit, String*);
[JScript] public function Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A string that contains a descriptive name for the new Metafile object can be added.

[Visual Basic] Public Sub New(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(Stream*, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String);

Initializes a new instance of the Metafile class from the specified data stream, a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A string that contains a descriptive name for the new Metafile object can be added.

[Visual Basic] Public Sub New(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(Stream*, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A descriptive string can also be added.

[Visual Basic] Public Sub New(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(string, IntPtr, Rectangle, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(String*, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String);

Initializes a new instance of the Metafile class with the specified file name, using a Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile object, the supplied units of measure, and an EmfType enumeration that specifies the format of the Metafile object. A descriptive string can also be added.

[Visual Basic] Public Sub New(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
[C#] public Metafile(string, IntPtr, RectangleF, MetafileFrameUnit, EmfType, string);
[C++] public: Metafile(String*, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String*);
[JScript] public function Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String);

See Also

Metafile Class | Metafile Members | System.Drawing.Imaging Namespace

Show: