自动检测用户显示器的亮度?

发布于 2024-09-19 10:11:40 字数 142 浏览 8 评论 0原文

我有网络应用程序,并注意到用户的显示器亮度设置存在巨大差异。

用户的显示器越亮,我的网络应用程序的颜色看起来就越褪色。

有没有一种方法可以自动检测用户的显示器亮度,而无需用户参与,以便我可以根据亮度以编程方式调整 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

送舟行 2024-09-26 10:11:40

简短回答; “不”。

较长的答案; “不,从来没有”

Short answer; "No".

Longer answer; "No, never"

花想c 2024-09-26 10:11:40

即使这是可能的(事实并非如此),用户也有使用不同对比度/亮度级别的原因,并且试图规避这些将被认为是粗鲁的。这就像广播广告商询问是否可以在播放广告时打开广播。当然,您可以使用与音频广告中使用的方法类似的方法(其中它们限制信号中的错误以使其尽可能响亮)和您的配色方案。

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.

樱&纷飞 2024-09-26 10:11:40

我不这么认为。显示器亮度是一个硬件设置,我认为计算机无法读取该设置。

I don't think so. Monitor brightness is a hardware setting, and I don't think the computer is able to read that setting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文