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 中获取夜灯模式的状态
基础教程推荐
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
