BrightnessOverride.SetBrightnessLevel 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.
Sets the brightness level and the override options. When your app is ready to change the current brightness with what you want to override it with, call StartOverride.
public:
virtual void SetBrightnessLevel(double brightnessLevel, DisplayBrightnessOverrideOptions options) = SetBrightnessLevel;
void SetBrightnessLevel(double const& brightnessLevel, DisplayBrightnessOverrideOptions const& options);
public void SetBrightnessLevel(double brightnessLevel, DisplayBrightnessOverrideOptions options);
function setBrightnessLevel(brightnessLevel, options)
Public Sub SetBrightnessLevel (brightnessLevel As Double, options As DisplayBrightnessOverrideOptions)
Parameters
- brightnessLevel
-
Double
double
Brightness of the screen. Value should be in the range of 0.0 and 1.0, where 1.0 is for 100% brightness.
- options
- DisplayBrightnessOverrideOptions
Options that modify the brightness level of the screen during the brightness override session.
Examples
// Set display to 80% brightness and, if the device is on low battery during overriding,
// then allow the display to dim. */
bo.SetBrightnessLevel(0.80, DisplayBrightnessOverrideOptions.UseDimmedPolicyWhenBatteryIsLow);