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

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

構文

void Metafile(
  [in]      const WCHAR       *fileName,
  [in]      HDC               referenceHdc,
  [in, ref] const Rect &      frameRect,
  [in]      MetafileFrameUnit frameUnit,
  [in]      EmfType           type,
  [in]      const WCHAR       *description
);

パラメーター

[in] fileName

型: const WCHAR*

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

[in] referenceHdc

種類: HDC

ディスプレイ デバイスの属性を含むデバイス コンテキストを処理します。

[in, ref] frameRect

型: const Rect

メタファイルの表示を境界とする四角形への参照。

[in] frameUnit

型: MetaFileFrameUnit

省略可能。 frameRect の測定単位を指定する MetafileFrameUnit 列挙体の要素。 既定値は MetafileFrameUnitGdi です

[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

メタファイル

メタファイルの記録

Rect