Share via


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