BrightnessOverrideSettings.CreateFromNits(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.