Metafile Konstruktoren

Definition

Initialisiert eine neue Instanz der Metafile-Klasse.

Überlädt

Name Beschreibung
Metafile(Stream)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Datenstrom.

Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle zu einem Gerätekontext, eine RectangleF-Struktur, die das Rechteck darstellt, das das neue Metafile und die angegebene Maßeinheit begrenzt.

Metafile(String, IntPtr, EmfType, String)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer EmfType Enumeration, die das Format der Metafile angibt. Eine beschreibende Zeichenfolge kann ebenfalls hinzugefügt werden.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer Rectangle-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer RectangleF-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt.

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann zum Benennen der Datei bereitgestellt werden.

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

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann zum Benennen der Datei bereitgestellt werden.

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

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(Stream, IntPtr, EmfType, String)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine EmfType-Aufzählung, die das Format der Metafile angibt. Außerdem kann eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, hinzugefügt werden.

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

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer Rectangle-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

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

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer RectangleF-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, kann hinzugefügt werden.

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

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, kann hinzugefügt werden.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

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

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile.

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle zu einem Gerätekontext, eine Rectangle-Struktur, die das Rechteck darstellt, das das neue Metafile und die angegebene Maßeinheit begrenzt.

Metafile(String, IntPtr, RectangleF)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer RectangleF-Struktur, die das Rechteck darstellt, das den neuen Metafile begrenzt.

Metafile(String)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Dateinamen.

Metafile(IntPtr, Boolean)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle.

Metafile(IntPtr, EmfType)

Initialisiert eine neue Instanz der Metafile Klasse vom angegebenen Handle in einen Gerätekontext und eine EmfType Aufzählung, die das Format der Metafile.

Metafile(IntPtr, WmfPlaceableFileHeader)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle und einem WmfPlaceableFileHeader.

Metafile(IntPtr, Rectangle)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die durch das angegebene Rechteck begrenzt ist.

Metafile(IntPtr, RectangleF)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die durch das angegebene Rechteck begrenzt ist.

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile.

Metafile(String, IntPtr)

Initialisiert eine neue Instanz der Metafile Klasse mit dem angegebenen Dateinamen.

Metafile(IntPtr, EmfType, String)

Initialisiert eine neue Instanz der Metafile Klasse vom angegebenen Handle in einen Gerätekontext und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann angegeben werden, um die Datei zu benennen.

Metafile(Stream, IntPtr)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Datenstrom.

Metafile(IntPtr, Rectangle, MetafileFrameUnit)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die an das angegebene Rechteck gebunden ist, das die angegebene Maßeinheit verwendet.

Metafile(IntPtr, RectangleF, MetafileFrameUnit)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die an das angegebene Rechteck gebunden ist, das die angegebene Maßeinheit verwendet.

Metafile(Stream, IntPtr, EmfType)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine EmfType-Aufzählung, die das Format der Metafile angibt.

Metafile(Stream, IntPtr, Rectangle)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine Rectangle-Struktur, die das rechteck darstellt, das den neuen Metafile begrenzt.

Metafile(Stream, IntPtr, RectangleF)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine RectangleF-Struktur, die das rechteck darstellt, das den neuen Metafile begrenzt.

Metafile(String, IntPtr, EmfType)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer EmfType Enumeration, die das Format der Metafile angibt.

Metafile(String, IntPtr, Rectangle)

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer Rectangle-Struktur, die das Rechteck darstellt, das den neuen Metafile begrenzt.

Metafile(IntPtr, WmfPlaceableFileHeader, Boolean)

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle und einem WmfPlaceableFileHeader. Außerdem kann der deleteWmf Parameter verwendet werden, um das Handle zu löschen, wenn die Metadatei gelöscht wird.

Metafile(Stream)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Datenstrom.

public:
 Metafile(System::IO::Stream ^ stream);
public Metafile(System.IO.Stream stream);
new System.Drawing.Imaging.Metafile : System.IO.Stream -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream)

Parameter

stream
Stream

Die Stream , aus der das neue Metafileerstellt werden soll.

Ausnahmen

stream ist null.

Gilt für:

Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle zu einem Gerätekontext, eine RectangleF-Struktur, die das Rechteck darstellt, das das neue Metafile und die angegebene Maßeinheit begrenzt.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(String, IntPtr, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer EmfType Enumeration, die das Format der Metafile angibt. Eine beschreibende Zeichenfolge kann ebenfalls hinzugefügt werden.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, type As EmfType, description As String)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer Rectangle-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Eine Rectangle Struktur, die das Rechteck darstellt, das das neue Metafileumgebende Rechteck darstellt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer RectangleF-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann zum Benennen der Datei bereitgestellt werden.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ desc);
public Metafile(IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? desc);
public Metafile(IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string desc);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType, desc As String)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

desc
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann zum Benennen der Datei bereitgestellt werden.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType, description As String)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(Stream, IntPtr, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine EmfType-Aufzählung, die das Format der Metafile angibt. Außerdem kann eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, hinzugefügt werden.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, type As EmfType, description As String)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer Rectangle-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::String ^ description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, string? description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, string description);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * string -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, description As String)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext, einer RectangleF-Struktur, die das Rechteck darstellt, das die neue Metafile und die angegebene Maßeinheit begrenzt. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::String ^ desc);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, string? desc);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, string desc);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * string -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, desc As String)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

desc
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, kann hinzugefügt werden.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType, description As String)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile aus dem angegebenen Datenstrom, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine Zeichenfolge, die einen beschreibenden Namen für das neue Metafile enthält, kann hinzugefügt werden.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType, description As String)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType, description As String)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

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

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a RectangleF structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile. Eine beschreibende Zeichenfolge kann auch hinzugefügt werden.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type, System::String ^ description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string? description);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type, string description);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType, description As String)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

A String , das einen beschreibenden Namen für das neue Metafileenthält.

Gilt für:

Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, ein Windows handle to a device context, a Rectangle structure that represents the rectangle that bounds the new Metafile, the supplied unit of measure, and an EmfType enumeration that specifies the format of the Metafile.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle zu einem Gerätekontext, eine Rectangle-Struktur, die das Rechteck darstellt, das das neue Metafile und die angegebene Maßeinheit begrenzt.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(String, IntPtr, RectangleF)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer RectangleF-Struktur, die das Rechteck darstellt, das den neuen Metafile begrenzt.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::RectangleF frameRect);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.RectangleF frameRect);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.RectangleF -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As RectangleF)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Dateinamen.

public:
 Metafile(System::String ^ filename);
public Metafile(string filename);
new System.Drawing.Imaging.Metafile : string -> System.Drawing.Imaging.Metafile
Public Sub New (filename As String)

Parameter

filename
String

A String that represents the file name from which to create the new Metafile.

Beispiele

Das folgende Codebeispiel veranschaulicht das Erstellen und Verwenden eines Metafile.


using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

// for Marshal.Copy
using System.Runtime.InteropServices; 

public class Form1 : Form
{
    private Metafile metafile1;
    private Graphics.EnumerateMetafileProc metafileDelegate;
    private Point destPoint;
    public Form1()
    {
        metafile1 = new Metafile(@"C:\Test.wmf");
        metafileDelegate = new Graphics.EnumerateMetafileProc(MetafileCallback);
        destPoint = new Point(20, 10);
    }
    protected override void OnPaint(PaintEventArgs e)
    {
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate);
    }
    private bool MetafileCallback(
       EmfPlusRecordType recordType,
       int flags,
       int dataSize,
       IntPtr data,
       PlayRecordCallback callbackData)
    {
        byte[] dataArray = null;
        if (data != IntPtr.Zero)
        {
            // Copy the unmanaged record to a managed byte buffer 
            // that can be used by PlayRecord.
            dataArray = new byte[dataSize];
            Marshal.Copy(data, dataArray, 0, dataSize);
        }

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray);

        return true;
    }

    static void Main()
    {
        Application.Run(new Form1());
    }
}
Imports System.Drawing
Imports System.Drawing.Imaging
Imports System.Windows.Forms
' for Marshal.Copy
Imports System.Runtime.InteropServices


Public Class Form1
    Inherits Form
    Private metafile1 As Metafile
    Private metafileDelegate As Graphics.EnumerateMetafileProc
    Private destPoint As Point
    
    Public Sub New() 
        metafile1 = New Metafile("C:\test.wmf")
        metafileDelegate = New Graphics.EnumerateMetafileProc(AddressOf MetafileCallback)
        destPoint = New Point(20, 10)
    
    End Sub
    
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) 
        e.Graphics.EnumerateMetafile(metafile1, destPoint, metafileDelegate)
    
    End Sub
    
    Private Function MetafileCallback(ByVal recordType As _
        EmfPlusRecordType, ByVal flags As Integer, ByVal dataSize As Integer, _
        ByVal data As IntPtr, ByVal callbackData As PlayRecordCallback) As Boolean

        Dim dataArray As Byte() = Nothing
        If data <> IntPtr.Zero Then

            ' Copy the unmanaged record to a managed byte buffer 
            ' that can be used by PlayRecord.
            dataArray = New Byte(dataSize) {}
            Marshal.Copy(data, dataArray, 0, dataSize)
        End If

        metafile1.PlayRecord(recordType, flags, dataSize, dataArray)
        Return True

    End Function
    
    Shared Sub Main() 
        Application.Run(New Form1())
    End Sub

End Class

Gilt für:

Metafile(IntPtr, Boolean)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle.

public:
 Metafile(IntPtr henhmetafile, bool deleteEmf);
public Metafile(IntPtr henhmetafile, bool deleteEmf);
new System.Drawing.Imaging.Metafile : nativeint * bool -> System.Drawing.Imaging.Metafile
Public Sub New (henhmetafile As IntPtr, deleteEmf As Boolean)

Parameter

henhmetafile
IntPtr

nativeint

Ein Handle zu einer erweiterten Metadatei.

deleteEmf
Boolean

trueum das erweiterte Metadateihandle zu löschen, wenn die Metafile Datei gelöscht wird; andernfalls . false

Gilt für:

Metafile(IntPtr, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse vom angegebenen Handle in einen Gerätekontext und eine EmfType Aufzählung, die das Format der Metafile.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Imaging::EmfType emfType);
public Metafile(IntPtr referenceHdc, System.Drawing.Imaging.EmfType emfType);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, emfType As EmfType)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

emfType
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(IntPtr, WmfPlaceableFileHeader)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle und einem WmfPlaceableFileHeader.

public:
 Metafile(IntPtr hmetafile, System::Drawing::Imaging::WmfPlaceableFileHeader ^ wmfHeader);
public Metafile(IntPtr hmetafile, System.Drawing.Imaging.WmfPlaceableFileHeader wmfHeader);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Imaging.WmfPlaceableFileHeader -> System.Drawing.Imaging.Metafile
Public Sub New (hmetafile As IntPtr, wmfHeader As WmfPlaceableFileHeader)

Parameter

hmetafile
IntPtr

nativeint

Ein Fensterziehpunkt zu einem Metafile.

Gilt für:

Metafile(IntPtr, Rectangle)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die durch das angegebene Rechteck begrenzt ist.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Rectangle frameRect);
public Metafile(IntPtr referenceHdc, System.Drawing.Rectangle frameRect);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Rectangle -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As Rectangle)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(IntPtr, RectangleF)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die durch das angegebene Rechteck begrenzt ist.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::RectangleF frameRect);
public Metafile(IntPtr referenceHdc, System.Drawing.RectangleF frameRect);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.RectangleF -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As RectangleF)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, gebunden durch das angegebene Rechteck, das die angegebene Maßeinheit verwendet, und eine EmfType Aufzählung, die das Format der Metafile.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit, System::Drawing::Imaging::EmfType type);
public Metafile(IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit, type As EmfType)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(String, IntPtr)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse mit dem angegebenen Dateinamen.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc);
public Metafile(string fileName, IntPtr referenceHdc);
new System.Drawing.Imaging.Metafile : string * nativeint -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

Gilt für:

Metafile(IntPtr, EmfType, String)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse vom angegebenen Handle in einen Gerätekontext und eine EmfType Aufzählung, die das Format der Metafile. Eine Zeichenfolge kann angegeben werden, um die Datei zu benennen.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Imaging::EmfType emfType, System::String ^ description);
public Metafile(IntPtr referenceHdc, System.Drawing.Imaging.EmfType emfType, string? description);
public Metafile(IntPtr referenceHdc, System.Drawing.Imaging.EmfType emfType, string description);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Imaging.EmfType * string -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, emfType As EmfType, description As String)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

emfType
EmfType

Ein EmfType Wert, der das Format der Metafile.

description
String

Ein beschreibender Name für das neue Metafile.

Gilt für:

Metafile(Stream, IntPtr)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Datenstrom.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

Gilt für:

Metafile(IntPtr, Rectangle, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die an das angegebene Rechteck gebunden ist, das die angegebene Maßeinheit verwendet.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::Rectangle frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(IntPtr referenceHdc, System.Drawing.Rectangle frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Rectangle * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As Rectangle, frameUnit As MetafileFrameUnit)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(IntPtr, RectangleF, MetafileFrameUnit)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Gerätekontext, die an das angegebene Rechteck gebunden ist, das die angegebene Maßeinheit verwendet.

public:
 Metafile(IntPtr referenceHdc, System::Drawing::RectangleF frameRect, System::Drawing::Imaging::MetafileFrameUnit frameUnit);
public Metafile(IntPtr referenceHdc, System.Drawing.RectangleF frameRect, System.Drawing.Imaging.MetafileFrameUnit frameUnit);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.RectangleF * System.Drawing.Imaging.MetafileFrameUnit -> System.Drawing.Imaging.Metafile
Public Sub New (referenceHdc As IntPtr, frameRect As RectangleF, frameUnit As MetafileFrameUnit)

Parameter

referenceHdc
IntPtr

nativeint

Das Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

frameUnit
MetafileFrameUnit

Eine MetafileFrameUnit , die die Maßeinheit für frameRect.

Gilt für:

Metafile(Stream, IntPtr, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine EmfType-Aufzählung, die das Format der Metafile angibt.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Imaging::EmfType type);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, type As EmfType)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(Stream, IntPtr, Rectangle)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine Rectangle-Struktur, die das rechteck darstellt, das den neuen Metafile begrenzt.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::Rectangle frameRect);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.Rectangle frameRect);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.Rectangle -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As Rectangle)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(Stream, IntPtr, RectangleF)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Datenstrom, ein Windows Handle für einen Gerätekontext und eine RectangleF-Struktur, die das rechteck darstellt, das den neuen Metafile begrenzt.

public:
 Metafile(System::IO::Stream ^ stream, IntPtr referenceHdc, System::Drawing::RectangleF frameRect);
public Metafile(System.IO.Stream stream, IntPtr referenceHdc, System.Drawing.RectangleF frameRect);
new System.Drawing.Imaging.Metafile : System.IO.Stream * nativeint * System.Drawing.RectangleF -> System.Drawing.Imaging.Metafile
Public Sub New (stream As Stream, referenceHdc As IntPtr, frameRect As RectangleF)

Parameter

stream
Stream

Ein Stream Objekt, das die Daten für diese MetafileDaten enthält.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
RectangleF

Ein RectangleF Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(String, IntPtr, EmfType)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer EmfType Enumeration, die das Format der Metafile angibt.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Imaging::EmfType type);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Imaging.EmfType type);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Imaging.EmfType -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, type As EmfType)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

type
EmfType

Ein EmfType Wert, der das Format der Metafile.

Gilt für:

Metafile(String, IntPtr, Rectangle)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der klasse Metafile mit dem angegebenen Dateinamen, einem Windows Handle für einen Gerätekontext und einer Rectangle-Struktur, die das Rechteck darstellt, das den neuen Metafile begrenzt.

public:
 Metafile(System::String ^ fileName, IntPtr referenceHdc, System::Drawing::Rectangle frameRect);
public Metafile(string fileName, IntPtr referenceHdc, System.Drawing.Rectangle frameRect);
new System.Drawing.Imaging.Metafile : string * nativeint * System.Drawing.Rectangle -> System.Drawing.Imaging.Metafile
Public Sub New (fileName As String, referenceHdc As IntPtr, frameRect As Rectangle)

Parameter

fileName
String

A String that represents the file name of the new Metafile.

referenceHdc
IntPtr

nativeint

Ein Windows Handle für einen Gerätekontext.

frameRect
Rectangle

Ein Rectangle Wert, der das Rechteck darstellt, das das neue Metafilerechteck begrenzt.

Gilt für:

Metafile(IntPtr, WmfPlaceableFileHeader, Boolean)

Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs
Quelle:
Metafile.cs

Initialisiert eine neue Instanz der Metafile Klasse aus dem angegebenen Handle und einem WmfPlaceableFileHeader. Außerdem kann der deleteWmf Parameter verwendet werden, um das Handle zu löschen, wenn die Metadatei gelöscht wird.

public:
 Metafile(IntPtr hmetafile, System::Drawing::Imaging::WmfPlaceableFileHeader ^ wmfHeader, bool deleteWmf);
public Metafile(IntPtr hmetafile, System.Drawing.Imaging.WmfPlaceableFileHeader wmfHeader, bool deleteWmf);
new System.Drawing.Imaging.Metafile : nativeint * System.Drawing.Imaging.WmfPlaceableFileHeader * bool -> System.Drawing.Imaging.Metafile
Public Sub New (hmetafile As IntPtr, wmfHeader As WmfPlaceableFileHeader, deleteWmf As Boolean)

Parameter

hmetafile
IntPtr

nativeint

Ein Fensterziehpunkt zu einem Metafile.

deleteWmf
Boolean

true um das Handle beim Löschen des Neuen MetafileMetafile zu löschen, andernfalls false.

Gilt für: