Make Colours Brighter or Dimmer

  • Thread starter Thread starter Heinz Kiosk
  • Start date Start date
H

Heinz Kiosk

How can you make a new Color that is a brighter or dimmer version of an
existing Color?

eg Color myBrighterColor = BrighterVersionOf(someColor,alterByPercentage)

I can extract hue/brightness/saturation using Color calls but I can't see
any way of converting altered values for these back to a Color the way I
could in Win32.

If there is no call for this can anyone give me some pointers on how to make
RGB values brighter or dimmer without altering saturation or hue, I've tried
turning up/down all the values but they always seem to get greyer too if you
do that.

Thank you

Tom
 
lightColor = ControlPaint.Light (myColor, perc);
darkColor = ControlPaint.Dark(myColor,perc);

ControlPaint is in System.Windows.Forms
 
You could always twiddle the monitor knobs :D


Cris said:
lightColor = ControlPaint.Light (myColor, perc);
darkColor = ControlPaint.Dark(myColor,perc);

ControlPaint is in System.Windows.Forms
 
Bit hard to do it in synch with the scan when I'm doing multiple colour
gradients....

<G>

Tom
 
Perfect, Thank you.

Now all I need to do is work out how I could have found that one myself....

Tom
 
Thank you, very interesting and probably much better than Control.Light and
Control.Dark which appear to have a number of problems when I've examined
them more deeply.

Tom
 
Back
Top