IDCompositionRectangleClip::SetBottom (float) 方法 (dcomp.h)

變更剪輯物件的 Bottom 屬性值。 Bottom 屬性會指定裁剪矩形右下角的 Y 座標。

語法

HRESULT SetBottom(
  [in] float bottom
);

參數

[in] bottom

類型: float

Bottom 屬性的新值,以圖元為單位。 此參數的數值限制為 -2^21 到 2^21。 API 會接受此範圍以外的數位,但它們一律會固定在此範圍中。

傳回值

類型: HRESULT

如果函式成功,則會傳回S_OK。 否則,它會傳回 HRESULT 錯誤碼。 如需錯誤碼清單,請參閱 DirectComposition 錯誤碼

備註

如果 底部 參數是 NaN、正無限大或負無限大,這個方法就會失敗。

如果之前已建立 Bottom 屬性的動畫效果,這個方法會移除動畫,並將 Bottom 屬性設定為指定的靜態值。

需求

   
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
目標平台 Windows
標頭 dcomp.h
程式庫 Dcomp.lib
Dll Dcomp.dll

另請參閱

IDCompositionRectangleClip