自动检测用户显示器的亮度?
我有网络应用程序,并注意到用户的显示器亮度设置存在巨大差异。
用户的显示器越亮,我的网络应用程序的颜色看起来就越褪色。
有没有一种方法可以自动检测用户的显示器亮度,而无需用户参与,以便我可以根据亮度以编程方式调整 Web 应用程序的颜色?
I have web application and have noticed that there exists a huge variation in users' monitor brightness settings.
The brighter a user's monitor, the more washed about my web applications colors look.
Is there a way to automatically detect the user's monitor brightness, without the user's involvement, so that I can programmatically adjust my web-application's colors based on the brightness?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
简短回答; “不”。
较长的答案; “不,从来没有”
Short answer; "No".
Longer answer; "No, never"
即使这是可能的(事实并非如此),用户也有使用不同对比度/亮度级别的原因,并且试图规避这些将被认为是粗鲁的。这就像广播广告商询问是否可以在播放广告时打开广播。当然,您可以使用与音频广告中使用的方法类似的方法(其中它们限制信号中的错误以使其尽可能响亮)和您的配色方案。
Even if it were possible (which it isn't), users have their reasons for using differing contrast/brightness levels and to try to circumvent these would be considered rude. It would be like a radio advertiser asking if it is possible to turn up the radio when their advert plays. Of course, you could use an approach similar to those used in audio advertising (where they limit the buggery out of the signal to get it as loud as possible) with your color scheme.
我不这么认为。显示器亮度是一个硬件设置,我认为计算机无法读取该设置。
I don't think so. Monitor brightness is a hardware setting, and I don't think the computer is able to read that setting.