Metafile::Metafile(constWCHAR*,HDC,EmfType,constWCHAR*) メソッド (gdiplusheaders.h)

記録用の Metafile::Metafile オブジェクトを作成します。

構文

void Metafile(
  [in] const WCHAR *fileName,
  [in] HDC         referenceHdc,
  [in] EmfType     type,
  [in] const WCHAR *description
);

パラメーター

[in] fileName

型: const WCHAR*

メタファイルを保存するファイルの名前を指定するワイド文字列へのポインター。

[in] referenceHdc

種類: HDC

ディスプレイ デバイスの属性を含むデバイス コンテキストに対する Windows ハンドル。

[in] type

型: EmfType

省略可能。 記録されるメタファイルの種類を指定する EmfType 列挙体の要素。 既定値は EmfTypeEmfPlusDual です

[in] description

型: const WCHAR*

省略可能。 メタファイルのわかりやすい名前を指定するワイド文字列へのポインター。 既定値は NULL です。

戻り値

なし

解説

ファイルに記録する場合、ファイルは書き込み可能で、Windows GDI+ はファイルの排他ロックを取得できる必要があります。

要件

   
サポートされている最小のクライアント Windows XP、Windows 2000 Professional [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows 2000 Server [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー gdiplusheaders.h (Gdiplus.h を含む)
Library Gdiplus.lib
[DLL] Gdiplus.dll

関連項目

EmfType

メタファイルの読み込みと表示

メタファイル

MetafileFrameUnit

メタファイル

メタファイルの記録