CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 73

Threaded View

  1. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Talking Re: Monitor Temperature

    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 :

    Code:
     <DllImport("gdi32.dll")> _
        Private Shared Function SetDeviceGammaRamp(ByVal hDC As IntPtr, ByRef lpRamp As RAMP) As Boolean
        End Function
    I am attaching a working project ( in VB 2010 ) with
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured