Share via


HolographicCamera.ViewportScaleFactor Property

Definition

Gets or sets the scale factor to apply to the default viewport size.

public:
 property double ViewportScaleFactor { double get(); void set(double value); };
double ViewportScaleFactor();

void ViewportScaleFactor(double value);
public double ViewportScaleFactor { get; set; }
var double = holographicCamera.viewportScaleFactor;
holographicCamera.viewportScaleFactor = double;
Public Property ViewportScaleFactor As Double

Property Value

Double

double

The viewport scale factor.

Remarks

Each frame, the system decides the size of the viewport within the render target that the app must render that frame. Sometimes the system may lower this to free up system resources, for example when video capture is occurring. Regardless of the viewport size, the rendered image is always scaled up to the full size of the displays. An app looking to lower its rendering cost for other reasons can request a smaller viewport.

You can specify a scale factor between 0.0 and 1.0, which is multiplied by the default viewport size. In future frames, the system will specify that you render to the nearest valid viewport size to this requested size.

Applies to