RaspberryPi 上的 UWP C# BrightnessOverride Class
UWP C# BrightnessOverride Class on RaspberryPi
我正在 Raspiberry Pi 上测试 brightnessoverride
class UWP。我不确定它是否支持 Raspberry Pi RaspberryPi 官方 7" 触摸屏 LCD。
我正在尝试 setbrightnessvalue
如下;
displayBrightness = BrightnessOverride.GetForCurrentView();
displayBrightness.SetBrightnessLevel(0.50, DisplayBrightnessOverrideOptions.None);
displayBrightness.StartOverride();
但我收到如下 exception
消息
"Error HRESULT E_FAIL has been returned from a call to a COM component."
谁能帮忙解释一下?
谢谢。
BrightnessOverride API provides the ability to have
per-application brightness control on devices that support
controllable brightness.
要检查设备是否支持它,您可以检查BrightnessOverride.IsSupported。对于 Raspberry Pi 官方 7" 触摸屏,此值为 false。
我正在 Raspiberry Pi 上测试 brightnessoverride
class UWP。我不确定它是否支持 Raspberry Pi RaspberryPi 官方 7" 触摸屏 LCD。
我正在尝试 setbrightnessvalue
如下;
displayBrightness = BrightnessOverride.GetForCurrentView();
displayBrightness.SetBrightnessLevel(0.50, DisplayBrightnessOverrideOptions.None);
displayBrightness.StartOverride();
但我收到如下 exception
消息
"Error HRESULT E_FAIL has been returned from a call to a COM component."
谁能帮忙解释一下? 谢谢。
BrightnessOverride API provides the ability to have per-application brightness control on devices that support controllable brightness.
要检查设备是否支持它,您可以检查BrightnessOverride.IsSupported。对于 Raspberry Pi 官方 7" 触摸屏,此值为 false。