One way to change the brightness is to change the Gamma component to give you a feeling that brightness is reduced. Actually the contrast is reduced.
To do this, you'll need the SetDeviceGammaRamp API :
I am attaching a working project ( in VB 2010 ) withCode:<DllImport("gdi32.dll")> _ Private Shared Function SetDeviceGammaRamp(ByVal hDC As IntPtr, ByRef lpRamp As RAMP) As Boolean End Function![]()





Reply With Quote