Udostępnij za pośrednictwem


BrightnessOverrideSettings.CreateFromNits(Single) Method

Definition

Creates a BrightnessOverrideSettings object with the specified brightness in nits.

public:
 static BrightnessOverrideSettings ^ CreateFromNits(float nits);
 static BrightnessOverrideSettings CreateFromNits(float const& nits);
public static BrightnessOverrideSettings CreateFromNits(float nits);
function createFromNits(nits)
Public Shared Function CreateFromNits (nits As Single) As BrightnessOverrideSettings

Parameters

nits
Single

float

The brightness in nits to use to create the override settings.

Returns

The override settings.

Remarks

The supported nit values can be queried with GetSupportedNitRanges. If the view does not support the given nit value, then the nearest supported nit value will be set. If no nit values are supported, this will be set to 0.

Applies to