Beispiel #1
0
 public void SetColourTemperature(MonitorColour colour)
 {
     if (colour != MonitorColour.Default)
     {
         setColour = colour;
     }
     SetDeviceGammaRamp(GetDC(IntPtr.Zero), ref colour);
 }
Beispiel #2
0
 private void SetSliderValuesAndMonitorTemperature(MonitorColour colour)
 {
     SetSliderValues(colour);
     SetColourTemperature(colour);
 }
Beispiel #3
0
 private void SetSliderValues(MonitorColour colour)
 {
     SldrRed.Value   = colour.RawRed;
     SldrGreen.Value = colour.RawGreen;
     SldrBlue.Value  = colour.RawBlue;
 }
Beispiel #4
0
 public static extern bool SetDeviceGammaRamp(IntPtr hDC, ref MonitorColour lpRamp);