Contrast settings
-
Can we change the contrast settings programaticaly? I mean, after changing, the impact can be seen in the monitor menu of contrast figure .
-
Alternative is associated with Brightness. Please correct me if I am misunderstanding it. I was looking for some sample code to change contrast. Can you please provide some piece of code associated with SetMonitorContrast function
No sample code but P/Invoke isn't generally particularly difficult. The SetMonitorContrast API function is here[^]. It appears that you will need to use other functions too so the whole Monitor Configuration Functions[^] section may be of interest. For converting the C/C++ code to C# methods there are plenty of resources around, Luc has a good article on his blog and there is the interop toolkit which is a free download that does it all for you (no fun that way but useful if you don't like to get your hands dirty!).
Dave
Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) -
Alternative is associated with Brightness. Please correct me if I am misunderstanding it. I was looking for some sample code to change contrast. Can you please provide some piece of code associated with SetMonitorContrast function
abcurl wrote:
Can you please provide some piece of code associated with SetMonitorContrast function
Is Google broken there? I told you the exact API to search for - how hard can the rest be?
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads