Hello,
I am trying to change brightness of a color at run-time. I can get all the
components: Hue, Saturation, Brightness from Color object, and I can
obviously change these values but how can I create a new color based on
these new values?
Color oColor = Color.FromArgb(129, 129, 129);
float fNewHue = oColor.GetHue() + 10;
float fNewSaturation = oColor.GetSaturation() + 0.1F;
float fNewBrightness = oColor.GetBrightnes() + 0.1F;
// how can I build a new color based on these values?
Color oNewColor = Color.FromHSV(fNewHue, fNewSaturation, fNewBrightness); //
DOESN'T EXIST
Does anybody have a source for HSV to RGB (C# preferably), or is there a
work-around in .NET?
Thanks,
VR