public static System.Drawing.Color ModifyBrightness(System.Drawing.Color color, double brightness) { var tmpHSLColor = RGBColor.ToHSB(color); tmpHSLColor.Luminance *= brightness; return(tmpHSLColor.ToColor( )); }
public static System.Drawing.Color SetHue(System.Drawing.Color color, double Hue) { var tmpHSLColor = RGBColor.ToHSB(color); tmpHSLColor.Hue = Hue; return(tmpHSLColor.ToColor( )); }
public static System.Drawing.Color ModifySaturation(System.Drawing.Color color, double saturation) { var tmpHSLColor = RGBColor.ToHSB(color); tmpHSLColor.Saturation *= saturation; return(tmpHSLColor.ToColor( )); }