共用方式為


ID2D1DeviceContext2::D rawGdiMetafile (ID2D1GdiMetafile*,constD2D1_RECT_F&,constD2D1_RECT_F&) 方法 (d2d1_3.h)

使用指定的來源和目的地矩形,將元檔繪製到裝置內容。

語法

void DrawGdiMetafile(
  [in]  ID2D1GdiMetafile    *gdiMetafile,
  [ref] const D2D1_RECT_F & destinationRectangle,
  [ref] const D2D1_RECT_F & sourceRectangle
);

參數

[in] gdiMetafile

類型: ID2D1GdiMetafile*

要繪製的元檔。

[ref] destinationRectangle

類型: const D2D1_RECT_F

要繪製元數據檔的目標矩形,相對於轉譯目標) 的 DIP 中定義的左上角 (。 如果指定 NULL,目的地矩形為 {0, 0, w, h},其中 w 和 h 是 ID2D1GdiMetafile::GetBounds 所報告的元文件寬度和高度。

[ref] sourceRectangle

類型: const D2D1_RECT_F

要繪製的來源元檔矩形,相對於元檔) 中定義的左上角 (。 如果指定 NULL,則來源矩形是 ID2D1GdiMetafile1::GetSourceBounds 所傳回的值。

傳回值

規格需求

   
最低支援的用戶端 Windows 10 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2016 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d2d1_3.h
Dll D2d1.dll

另請參閱

ID2D1DeviceContext

ID2D1DeviceContext2