Get status of night light mode in Windows 10(在 Windows 10 中获取夜灯模式的状态)
问题描述
我正在使用
<小时>背景:我正在研究环境光实现,如果启用了夜灯模式,颜色偏移不会反映在我屏幕周围的 LED 中,因此屏幕内容和屏幕周围"之间的颜色会关闭.
可以查看
的输出GetDeviceGammaRamp来自 Win API 的函数.将输出与夜灯 ON 和 OFF 进行比较,您应该可以检测到它.
或者您可以尝试监视此 Reg 键的更改
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionCloudStoreStoreCacheDefaultAccount$$windows.data.bluelightreduction.settingsCurrentI am using the desktop duplication api to grab the screen content and as it turns out, the new night light mode ('Nachtmodus' in German) is not applied in the grabbed screen content.
How do I read (if possible directly in c#) the night mode status (enabled, color shift amount)?
or
How can I tell Windows to give me the color shifted image using the desktop duplication api?
Basically, I want to know the state of what is configured inside these red boxes:
Background: I am working on an ambilight implementation and if the night light mode is enabled, the color shift is not reflected in the LEDs around my screen and so the colors are off between screen content and 'around screen'.
You can check the output of
GetDeviceGammaRamp
Function from the Win API. Compare the output to Night Light ON and OFF and you should detect it.
Or you can try to monitor this Reg key for changes
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionCloudStoreStoreCacheDefaultAccount$$windows.data.bluelightreduction.settingsCurrent
这篇关于在 Windows 10 中获取夜灯模式的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Windows 10 中获取夜灯模式的状态
基础教程推荐
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 将数据集转换为列表 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 如果条件可以为空 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
