使用C#调节屏幕亮度 [英] Adjust screen brightness using C#
本文介绍了使用C#调节屏幕亮度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何调整屏幕亮度在C#?
How do i adjust the screen brightness in C#?
感谢。
推荐答案
看的 SetDeviceGammaRamp API函数。还有,描述使用它从C#这里$ C $的CProject文章:设置屏幕亮度在C#
Look at the SetDeviceGammaRamp API function. There's a CodeProject article that describes using it from C# here: Setting Screen Brightness in C#
要知道,你的显卡必须支持,虽然这一点,我认为最现代的事,但我不知道。
Be aware that your graphics card has to support this though, I'd assume that most modern ones do, but I don't know.
编辑:自$ C $的CProject文章似乎下来,换个地方找出如何从C#调用是对的 PInvoke的网站。
Since the CodeProject article seems to be down, another place to find out how to call it from C# is on the pInvoke site.
这篇关于使用C#调节屏幕亮度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文