Metafile Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av Metafile klassen.
Överlagringar
| Name | Description |
|---|---|
| Metafile(Stream) |
Initierar en ny instans av Metafile klassen från den angivna dataströmmen. |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. |
| Metafile(String, IntPtr, EmfType, String) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows referens till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. En beskrivande sträng kan också läggas till. |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, begränsad av den angivna rektangel som använder den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. Du kan ange en sträng som ger filen namnet. |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, begränsad av den angivna rektangel som använder den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. Du kan ange en sträng som ger filen namnet. |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(Stream, IntPtr, EmfType, String) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. Dessutom kan en sträng som innehåller ett beskrivande namn för det nya Metafile läggas till. |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. En beskrivande sträng kan också läggas till. |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. En beskrivande sträng kan också läggas till. |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. En sträng som innehåller ett beskrivande namn för det nya Metafile kan läggas till. |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. En sträng som innehåller ett beskrivande namn för det nya Metafile kan läggas till. |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. En beskrivande sträng kan också läggas till. |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. En beskrivande sträng kan också läggas till. |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, begränsad av den angivna rektangel som använder den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. |
| Metafile(String, IntPtr, RectangleF) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows referens till en enhetskontext och en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile. |
| Metafile(String) |
Initierar en ny instans av Metafile klassen från det angivna filnamnet. |
| Metafile(IntPtr, Boolean) |
Initierar en ny instans av Metafile klassen från det angivna handtaget. |
| Metafile(IntPtr, EmfType) |
Initierar en ny instans av Metafile klassen från det angivna handtaget till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(IntPtr, WmfPlaceableFileHeader) |
Initierar en ny instans av Metafile klassen från det angivna handtaget och en WmfPlaceableFileHeader. |
| Metafile(IntPtr, Rectangle) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten som begränsas av den angivna rektangeln. |
| Metafile(IntPtr, RectangleF) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten som begränsas av den angivna rektangeln. |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, begränsad av den angivna rektangel som använder den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(String, IntPtr) |
Initierar en ny instans av Metafile klassen med det angivna filnamnet. |
| Metafile(IntPtr, EmfType, String) |
Initierar en ny instans av Metafile klassen från det angivna handtaget till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. Du kan ange en sträng som namnger filen. |
| Metafile(Stream, IntPtr) |
Initierar en ny instans av Metafile klassen från den angivna dataströmmen. |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, som begränsas av den angivna rektangel som använder den angivna måttenheten. |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit) |
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, som begränsas av den angivna rektangel som använder den angivna måttenheten. |
| Metafile(Stream, IntPtr, EmfType) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(Stream, IntPtr, Rectangle) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext och en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile. |
| Metafile(Stream, IntPtr, RectangleF) |
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext och en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile. |
| Metafile(String, IntPtr, EmfType) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows referens till en enhetskontext och en EmfType uppräkning som anger formatet för Metafile. |
| Metafile(String, IntPtr, Rectangle) |
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows referens till en enhetskontext och en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile. |
| Metafile(IntPtr, WmfPlaceableFileHeader, Boolean) |
Initierar en ny instans av Metafile klassen från det angivna handtaget och en WmfPlaceableFileHeader. Dessutom kan parametern |
Metafile(Stream)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna dataströmmen.
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)
Parametrar
Undantag
stream är null.
Gäller för
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- Rectangle
En Rectangle struktur som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för 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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på 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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows hantera till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile och den angivna måttenheten. En beskrivande sträng kan också läggas till.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. En sträng som innehåller ett beskrivande namn för det nya Metafile kan läggas till.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile från den angivna dataströmmen. en Windows hantera en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet för Metafile. En sträng som innehåller ett beskrivande namn för det nya Metafile kan läggas till.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en Rectangle struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. En beskrivande sträng kan också läggas till.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet. en Windows referens till en enhetskontext, en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile, den angivna måttenheten och en EmfType uppräkning som anger formatet på Metafile. En beskrivande sträng kan också läggas till.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr, RectangleF)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile med det angivna filnamnet, en Windows referens till en enhetskontext och en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
Gäller för
Metafile(String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från det angivna filnamnet.
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)
Parametrar
Exempel
Följande kodexempel visar hur du skapar och använder en 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
Gäller för
Metafile(IntPtr, Boolean)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från det angivna handtaget.
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)
Parametrar
- henhmetafile
-
IntPtr
nativeint
Ett handtag till en förbättrad metafil.
- deleteEmf
- Boolean
true om du vill ta bort den förbättrade metafilreferensen när den Metafile tas bort, falseannars .
Gäller för
Metafile(IntPtr, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
Gäller för
Metafile(IntPtr, WmfPlaceableFileHeader)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från det angivna handtaget och en 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)
Parametrar
- wmfHeader
- WmfPlaceableFileHeader
Gäller för
Metafile(IntPtr, Rectangle)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten som begränsas av den angivna rektangeln.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
Gäller för
Metafile(IntPtr, RectangleF)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten som begränsas av den angivna rektangeln.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
Gäller för
Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(String, IntPtr)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen med det angivna filnamnet.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(IntPtr, EmfType, String)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
Gäller för
Metafile(Stream, IntPtr)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna dataströmmen.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(IntPtr, Rectangle, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, som begränsas av den angivna rektangel som använder den angivna måttenheten.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(IntPtr, RectangleF, MetafileFrameUnit)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från den angivna enhetskontexten, som begränsas av den angivna rektangel som använder den angivna måttenheten.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
Handtaget till en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
- frameUnit
- MetafileFrameUnit
A MetafileFrameUnit som anger måttenheten för frameRect.
Gäller för
Metafile(Stream, IntPtr, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(Stream, IntPtr, Rectangle)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(Stream, IntPtr, RectangleF)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av klassen Metafile från den angivna dataströmmen, en Windows referens till en enhetskontext och en RectangleF struktur som representerar rektangeln som begränsar den nya Metafile.
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
- frameRect
- RectangleF
En RectangleF som representerar rektangeln som begränsar den nya Metafile.
Gäller för
Metafile(String, IntPtr, EmfType)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(String, IntPtr, Rectangle)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
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)
Parametrar
- referenceHdc
-
IntPtr
nativeint
En Windows hantera en enhetskontext.
Gäller för
Metafile(IntPtr, WmfPlaceableFileHeader, Boolean)
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
- Källa:
- Metafile.cs
Initierar en ny instans av Metafile klassen från det angivna handtaget och en WmfPlaceableFileHeader. Dessutom kan parametern deleteWmf användas för att ta bort handtaget när metafilen tas bort.
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)
Parametrar
- wmfHeader
- WmfPlaceableFileHeader
- deleteWmf
- Boolean
true om du vill ta bort handtaget till det nya Metafile när det Metafile tas bort, falseannars .