SizeU 函式 (d2d1helper.h)

建立包含指定寬度和高度 的D2D1_SIZE_U 結構。

語法

D2D1_SIZE_U SizeU(
  UINT32 width,
  UINT32 height
);

參數

width

類型: UINT32

大小的寬度。 預設值為 0。

height

類型: UINT32

大小的高度。 預設值為 0。

傳回值

類型: D2D1_SIZE_U

新的大小結構。

規格需求

   
最低支援的用戶端 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d2d1helper.h
程式庫 D2d1.lib
Dll D2d1.dll