开发者

Programmatically change the temperature of the display

开发者 https://www.devze.com 2023-01-23 22:03 出处:网络
I am trying to programatically change the temperature of the entire display dep开发者_开发问答ending on time of day / ambient lighting conditions. Assume that I have a sensor that returns the ambient

I am trying to programatically change the temperature of the entire display dep开发者_开发问答ending on time of day / ambient lighting conditions. Assume that I have a sensor that returns the ambient lighting conditions -- I would like to change the temperature of the display based on that. It's a bit like flux. It will be a Windows box.

It would be great if I can interface with some Windows API if it exists...


I understand you're talking about color temperature - not physical temperature :) See my answer here for that. Basically you can make a transparent layered window (SetLayeredWindowAttributes) in the correct color (blue-ish for cold, red-ish for warm etc) that covers the entire screen.

0

精彩评论

暂无评论...
验证码 换一张
取 消