Share via


ID2D1Geometry::GetBounds (constD2D1_MATRIX_3X2_F*,D2D1_RECT_F*) 方法 (d2d1.h)

擷取幾何的界限。

語法

HRESULT GetBounds(
  [in, optional] const D2D1_MATRIX_3X2_F *worldTransform,
  [out]          D2D1_RECT_F             *bounds
);

參數

[in, optional] worldTransform

類型:const D2D1_MATRIX_3X2_F*

在計算其界限或 Null之前,要套用至這個幾何的轉換。

[out] bounds

類型: D2D1_RECT_F*

當這個方法傳回時,會包含這個幾何的界限。 如果界限是空的,此參數將會是bounds.left>bounds.right的 rect。 您必須為此參數配置儲存體。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

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

另請參閱

ID2D1Geometry