Udostępnij za pośrednictwem


ColorExtensions.WithSaturation(Color, Single) Method

Definition

Creates a new color based on this color, but with a new saturation (0-100).

public static System.Drawing.Color WithSaturation (this System.Drawing.Color color, float saturation);

Parameters

color
System.Drawing.Color

The color to use as a base.

saturation
System.Single

The saturation to set 0-100.

Returns

System.Drawing.Color

The new color.

Applies to