简体   繁体   English

如何通过C#中的Intel图形以编程方式更改屏幕亮度

[英]How to programmatically change screen brightness thru Intel graphics in C#

I tried using WmiMonitorBrightness class of the Windows Management Instrumentation but my system does not support it. 我尝试使用Windows Management Instrumentation的WmiMonitorBrightness类,但我的系统不支持它。 I also tried changing gamma thru SetDeviceGammaRamp API function but, meh.. 我也尝试过通过SetDeviceGammaRamp API函数更改伽玛,但是,..

Then I checked the power option in windows 10 if it has the brightness control slider and it has none which I suspect is connected to why WmiMonitorBrightness does not work on my OS. 然后,我检查了Windows 10中的电源选项,如果它具有亮度控制滑块并且没有,我怀疑它与WmiMonitorBrightness为什么在我的操作系统上不起作用有关。

Finally, I found out that I can manually change the brightness thru the color setting of Intel HD Graphics control panel. 最后,我发现可以通过Intel HD Graphics控制面板的颜色设置手动更改亮度。 Now I want to ask how to change screen brightness using code like how Intel does it. 现在,我想问一下如何使用类似Intel的代码来更改屏幕亮度。 I am running my OS in an Intel Pentium N4200 microprocessor @ 1.10Ghz clockspeed and I use a touchscreen UI, if that matters. 我在Intel Pentium N4200微处理器上以@ 1.10Ghz的时钟速度运行操作系统,如果有问题,我使用触摸屏UI。

edit: I found out that Intel HD Graphics control panel does not change the backlight brightness of panel but just the color brightness. 编辑:我发现Intel HD Graphics控制面板不会更改面板的背光亮度,而只会更改颜色亮度。

Try using 尝试使用

SetMonitorBrightness SetMonitorBrightness

Here's the Microsoft link for it. 这是它的Microsoft链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM