Share via


ColorExtensions.WithLuminosity(Color, Single) Method

Definition

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

public static System.Drawing.Color WithLuminosity (this System.Drawing.Color color, float luminosity);

Parameters

color
System.Drawing.Color

The color to use as a base.

luminosity
System.Single

The luminosity to set 0-100.

Returns

System.Drawing.Color

The new color.

Applies to