Metafile コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Metafile クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Metafile(Stream) |
指定したデータ ストリームから Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい RectangleF をバインドする四角形を表す Metafile 構造体、および指定された測定単位を初期化します。 |
| Metafile(String, IntPtr, EmfType, String) |
Metafile クラスの新しいインスタンスを、指定したファイル名、デバイス コンテキストへのWindows ハンドル、および EmfType の形式を指定する Metafile 列挙型を使用して初期化します。 説明的な文字列も追加できます。 |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す Rectangle 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す RectangleF 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
指定したデバイス コンテキストからMetafile クラスの新しいインスタンスを初期化します。このインスタンスは、指定された測定単位を使用する指定した四角形と、EmfTypeの形式を指定するMetafile列挙体で囲まれます。 ファイルに名前を付ける文字列を指定できます。 |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
指定したデバイス コンテキストからMetafile クラスの新しいインスタンスを初期化します。このインスタンスは、指定された測定単位を使用する指定した四角形と、EmfTypeの形式を指定するMetafile列挙体で囲まれます。 ファイルに名前を付ける文字列を指定できます。 |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい Rectangle、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体を初期化します。 |
| Metafile(Stream, IntPtr, EmfType, String) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、および EmfType の形式を指定する Metafile 列挙体を初期化します。 また、新しい Metafile のわかりやすい名前を含む文字列を追加することもできます。 |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体を初期化します。 |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す Rectangle 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。 説明的な文字列を追加することもできます。 |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体。 |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す RectangleF 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。 説明的な文字列を追加することもできます。 |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい Rectangle、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体を初期化します。 新しい Metafile のわかりやすい名前を含む文字列を追加できます。 |
| Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体を初期化します。 新しい Metafile のわかりやすい名前を含む文字列を追加できます。 |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String) |
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい Rectangle、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体。 説明的な文字列を追加することもできます。 |
| Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String) |
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体。 説明的な文字列を追加することもできます。 |
| Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい Rectangle、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体。 |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType) |
指定したデバイス コンテキストからMetafile クラスの新しいインスタンスを初期化します。このインスタンスは、指定された測定単位を使用する指定した四角形と、EmfTypeの形式を指定するMetafile列挙体で囲まれます。 |
| Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい Rectangle をバインドする四角形を表す Metafile 構造体、および指定された測定単位を初期化します。 |
| Metafile(String, IntPtr, RectangleF) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、および新しい Metafile をバインドする四角形を表す RectangleF 構造体を使用して、Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(String) |
指定したファイル名から Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, Boolean) |
指定したハンドルから Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, EmfType) |
指定したハンドルからデバイス コンテキストへのMetafile クラスの新しいインスタンスと、EmfTypeの形式を指定するMetafile列挙体を初期化します。 |
| Metafile(IntPtr, WmfPlaceableFileHeader) |
指定したハンドルとMetafileから、WmfPlaceableFileHeader クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, Rectangle) |
指定した四角形で囲まれた、指定したデバイス コンテキストから Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, RectangleF) |
指定した四角形で囲まれた、指定したデバイス コンテキストから Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType) |
指定したデバイス コンテキストからMetafile クラスの新しいインスタンスを初期化します。このインスタンスは、指定された測定単位を使用する指定した四角形と、EmfTypeの形式を指定するMetafile列挙体で囲まれます。 |
| Metafile(String, IntPtr) |
指定したファイル名を使用して、 Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, EmfType, String) |
指定したハンドルからデバイス コンテキストへのMetafile クラスの新しいインスタンスと、EmfTypeの形式を指定するMetafile列挙体を初期化します。 ファイルに名前を付ける文字列を指定できます。 |
| Metafile(Stream, IntPtr) |
指定したデータ ストリームから Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, Rectangle, MetafileFrameUnit) |
指定した測定単位を使用する指定した四角形で囲まれた、指定したデバイス コンテキストから、 Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, RectangleF, MetafileFrameUnit) |
指定した測定単位を使用する指定した四角形で囲まれた、指定したデバイス コンテキストから、 Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(Stream, IntPtr, EmfType) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、および EmfType の形式を指定する Metafile 列挙体を初期化します。 |
| Metafile(Stream, IntPtr, Rectangle) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、および新しい Rectangle をバインドする四角形を表す Metafile 構造体を初期化します。 |
| Metafile(Stream, IntPtr, RectangleF) |
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、および新しい RectangleF をバインドする四角形を表す Metafile 構造体を初期化します。 |
| Metafile(String, IntPtr, EmfType) |
Metafile クラスの新しいインスタンスを、指定したファイル名、デバイス コンテキストへのWindows ハンドル、および EmfType の形式を指定する Metafile 列挙型を使用して初期化します。 |
| Metafile(String, IntPtr, Rectangle) |
指定したファイル名、デバイス コンテキストへのWindows ハンドル、および新しい Metafile をバインドする四角形を表す Rectangle 構造体を使用して、Metafile クラスの新しいインスタンスを初期化します。 |
| Metafile(IntPtr, WmfPlaceableFileHeader, Boolean) |
指定したハンドルとMetafileから、WmfPlaceableFileHeader クラスの新しいインスタンスを初期化します。 また、 |
Metafile(Stream)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したデータ ストリームから Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
例外
stream は nullです。
適用対象
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい RectangleF をバインドする四角形を表す Metafile 構造体、および指定された測定単位を初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す RectangleF 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名、デバイス コンテキストへのWindows ハンドル、新しい Metafile をバインドする四角形を表す RectangleF 構造体、および指定された測定単位を使用して、Metafile クラスの新しいインスタンスを初期化します。 説明的な文字列を追加することもできます。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, RectangleF, MetafileFrameUnit, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名を使用して、Metafile クラスの新しいインスタンスを初期化します。 デバイス コンテキストへのWindows ハンドル、新しい RectangleF、指定された測定単位、および Metafile の形式を指定する EmfType 列挙体を表す Metafile 構造体。 説明的な文字列を追加することもできます。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(IntPtr, RectangleF, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, Rectangle, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr, RectangleF)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名、デバイス コンテキストへのWindows ハンドル、および新しい Metafile をバインドする四角形を表す RectangleF 構造体を使用して、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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
適用対象
Metafile(String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名から Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
例
次のコード例は、 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
適用対象
Metafile(IntPtr, Boolean)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したハンドルから Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- henhmetafile
-
IntPtr
nativeint
拡張メタファイルへのハンドル。
適用対象
Metafile(IntPtr, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
適用対象
Metafile(IntPtr, WmfPlaceableFileHeader)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したハンドルとMetafileから、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)
パラメーター
- wmfHeader
- WmfPlaceableFileHeader
適用対象
Metafile(IntPtr, Rectangle)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定した四角形で囲まれた、指定したデバイス コンテキストから Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
適用対象
Metafile(IntPtr, RectangleF)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定した四角形で囲まれた、指定したデバイス コンテキストから Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
適用対象
Metafile(IntPtr, Rectangle, MetafileFrameUnit, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(String, IntPtr)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したファイル名を使用して、 Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(IntPtr, EmfType, String)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
適用対象
Metafile(Stream, IntPtr)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したデータ ストリームから Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(IntPtr, Rectangle, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定した測定単位を使用する指定した四角形で囲まれた、指定したデバイス コンテキストから、 Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(IntPtr, RectangleF, MetafileFrameUnit)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定した測定単位を使用する指定した四角形で囲まれた、指定したデバイス コンテキストから、 Metafile クラスの新しいインスタンスを初期化します。
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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
- frameUnit
- MetafileFrameUnit
MetafileFrameUnitの測定単位を指定するframeRect。
適用対象
Metafile(Stream, IntPtr, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(Stream, IntPtr, Rectangle)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(Stream, IntPtr, RectangleF)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したデータ ストリームから Metafile クラスの新しいインスタンス、デバイス コンテキストへのWindows ハンドル、および新しい RectangleF をバインドする四角形を表す 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
- frameRect
- RectangleF
新しいRectangleFの境界となる四角形を表すMetafile。
適用対象
Metafile(String, IntPtr, EmfType)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(String, IntPtr, Rectangle)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- 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)
パラメーター
- referenceHdc
-
IntPtr
nativeint
デバイス コンテキストへのWindows ハンドル。
適用対象
Metafile(IntPtr, WmfPlaceableFileHeader, Boolean)
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
- ソース:
- Metafile.cs
指定したハンドルとMetafileから、WmfPlaceableFileHeader クラスの新しいインスタンスを初期化します。 また、 deleteWmf パラメーターを使用して、メタファイルが削除されたときにハンドルを削除することもできます。
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)
パラメーター
- wmfHeader
- WmfPlaceableFileHeader