Share via


ColorOperator.AdjustSaturation Method ()

Adjusts the saturation value of a color.

Overload List

public static Color AdjustSaturation(Color, float);
public static ColorValue AdjustSaturation(ColorValue, float);
public static int AdjustSaturation(int, float);

Remarks

The s parameter linearly interpolates between the color converted to grayscale and the original color. There are no limits on the parameter's value. If the value is 0, the returned color is the grayscale color. If the value is 1, the returned color is the original color. If s is greater than 0 and less than 1, the saturation is decreased; if it is greater than 1, the saturation is increased.

The input alpha channel is copied, unmodified, to the output alpha channel.