Share via


IBasicVideo::p ut_DestinationWidth 方法 (control.h)

[與此頁面 相關的功能 DirectShow 是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對 Windows 10 和 Windows 11 進行優化。 Microsoft 強烈建議新程式代碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式代碼,以使用新的 API。]

方法 put_DestinationWidth 會設定目的矩形的寬度。

語法

HRESULT put_DestinationWidth(
  [in] long DestinationWidth
);

參數

[in] DestinationWidth

指定寬度,以像素為單位。

傳回值

傳回 HRESULT 值。 可能的值如下。

傳回碼 Description
E_INVALIDARG
無效引數。 DestinationWidth 必須大於零。
S_OK
此方法已成功。
VFW_E_NOT_CONNECTED
影片轉譯器未連接。

規格需求

需求
最低支援的用戶端 Windows 2000 Professional [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
目標平台 Windows
標頭 control.h (包含 Dshow.h)
程式庫 Strmiids.lib

另請參閱

錯誤和成功碼

IBasicVideo 介面