共用方式為


HolographicCameraPose.OverrideViewport(Rect, Rect) 方法

定義

指定應用程式轉譯至此框架之框架緩衝區內的替代檢視區矩形。

public:
 virtual void OverrideViewport(Rect leftViewport, Rect rightViewport) = OverrideViewport;
void OverrideViewport(Rect const& leftViewport, Rect const& rightViewport);
public void OverrideViewport(Rect leftViewport, Rect rightViewport);
function overrideViewport(leftViewport, rightViewport)
Public Sub OverrideViewport (leftViewport As Rect, rightViewport As Rect)

參數

leftViewport
Rect

左眼檢視區矩形。

rightViewport
Rect

右眼檢視區矩形。

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

在 CanOverrideViewport傳回 false 的裝置上呼叫 OverrideViewport 是錯誤,例如 HoloLens。

適用於