Udostępnij za pośrednictwem


BrightnessOverrideSettings Class

Definition

Contains the settings to use when overriding the screen brightness with DisplayEnhancementOverride on a device.

public ref class BrightnessOverrideSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BrightnessOverrideSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BrightnessOverrideSettings
Public NotInheritable Class BrightnessOverrideSettings
Inheritance
Object Platform::Object IInspectable BrightnessOverrideSettings
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Properties

DesiredLevel

Gets the desired brightness level.

DesiredNits

Gets the desired Nits level.

Methods

CreateFromDisplayBrightnessOverrideScenario(DisplayBrightnessOverrideScenario)

Creates a BrightnessOverrideSettings object with a brightness level corresponding to the specified brightness scenario.

CreateFromLevel(Double)

Creates a BrightnessOverrideSettings object with the specified brightness level.

CreateFromNits(Single)

Creates a BrightnessOverrideSettings object with the specified brightness in nits.

Applies to